$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1464739200000,25.1416],[1464825600000,25.0976],[1464912000000,25.0512],[1464998400000,25.0021],[1465084800000,25.0021],[1465171200000,25.0021],[1465257600000,24.9857],[1465344000000,24.9617],[1465430400000,24.9441],[1465516800000,25.0022],[1465603200000,25.0153],[1465689600000,25.0153],[1465776000000,25.0153],[1465862400000,24.9687],[1465948800000,24.9149],[1466035200000,null],[1466121600000,24.9046],[1466208000000,24.9089],[1466294400000,24.9089],[1466380800000,24.9089],[1466467200000,24.9089],[1466553600000,24.8926],[1466640000000,24.8981],[1466726400000,24.8829],[1466812800000,24.8734],[1466899200000,24.8734],[1466985600000,24.8734],[1467072000000,24.8734],[1467158400000,24.8734],[1467244800000,24.8544]], 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: [[1464739200000, 25.141637],[1464739200000, 25.141637],[1464825600000, 25.097590],[1464912000000, 25.051207],[1464998400000, 25.002072],[1465084800000, 25.002072],[1465171200000, 25.002072],[1465257600000, 24.985658],[1465344000000, 24.961680],[1465430400000, 24.944121],[1465516800000, 25.002237],[1465603200000, 25.015343],[1465689600000, 25.015343],[1465776000000, 25.015343],[1465862400000, 24.968681],[1465948800000, 24.914945],[1466121600000, 24.904642],[1466208000000, 24.908886],[1466294400000, 24.908886],[1466380800000, 24.908886],[1466467200000, 24.908886],[1466553600000, 24.892558],[1466640000000, 24.898078],[1466726400000, 24.882929],[1466812800000, 24.873395],[1466899200000, 24.873395],[1466985600000, 24.873395],[1467072000000, 24.873395],[1467158400000, 24.873395],[1467244800000, 24.854409]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });