$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс XDR, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс XDR', data: [[1346457600000,12.1655],[1346544000000,12.1655],[1346630400000,12.1655],[1346716800000,12.1655],[1346803200000,12.1723],[1346889600000,12.162],[1346976000000,12.1849],[1347062400000,12.2029],[1347148800000,12.2029],[1347235200000,12.2029],[1347321600000,12.252],[1347408000000,12.2641],[1347494400000,12.3163],[1347580800000,12.3116],[1347667200000,12.384],[1347753600000,12.384],[1347840000000,12.384],[1347926400000,12.385],[1348012800000,12.3646],[1348099200000,12.3358],[1348185600000,12.3275],[1348272000000,12.3532],[1348358400000,12.3532],[1348444800000,12.3532],[1348531200000,12.3151],[1348617600000,12.3214],[1348704000000,12.3045],[1348790400000,12.3076],[1348876800000,12.3267],[1348963200000,12.3267]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1346457600000, 12.165461],[1346457600000, 12.165461],[1346544000000, 12.165461],[1346630400000, 12.165461],[1346716800000, 12.165461],[1346803200000, 12.172260],[1346889600000, 12.162018],[1346976000000, 12.184878],[1347062400000, 12.202886],[1347148800000, 12.202886],[1347235200000, 12.202886],[1347321600000, 12.252005],[1347408000000, 12.264074],[1347494400000, 12.316307],[1347580800000, 12.311621],[1347667200000, 12.383954],[1347753600000, 12.383954],[1347840000000, 12.383954],[1347926400000, 12.384990],[1348012800000, 12.364643],[1348099200000, 12.335828],[1348185600000, 12.327457],[1348272000000, 12.353216],[1348358400000, 12.353216],[1348444800000, 12.353216],[1348531200000, 12.315149],[1348617600000, 12.321376],[1348704000000, 12.304457],[1348790400000, 12.307583],[1348876800000, 12.326716],[1348963200000, 12.326716]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });