$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1464739200000,19.3001],[1464825600000,19.2267],[1464912000000,19.1156],[1464998400000,19.1088],[1465084800000,19.1088],[1465171200000,19.1088],[1465257600000,19.336],[1465344000000,19.5288],[1465430400000,19.6683],[1465516800000,19.6141],[1465603200000,19.6234],[1465689600000,19.6234],[1465776000000,19.6234],[1465862400000,19.5516],[1465948800000,19.3557],[1466035200000,null],[1466121600000,19.1524],[1466208000000,19.3074],[1466294400000,19.3074],[1466380800000,19.3074],[1466467200000,19.3074],[1466553600000,19.4889],[1466640000000,19.51],[1466726400000,19.5214],[1466812800000,19.1251],[1466899200000,19.1251],[1466985600000,19.1251],[1467072000000,19.1251],[1467158400000,19.1251],[1467244800000,19.132]], 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, 19.300056],[1464739200000, 19.300056],[1464825600000, 19.226688],[1464912000000, 19.115598],[1464998400000, 19.108751],[1465084800000, 19.108751],[1465171200000, 19.108751],[1465257600000, 19.335986],[1465344000000, 19.528793],[1465430400000, 19.668344],[1465516800000, 19.614107],[1465603200000, 19.623417],[1465689600000, 19.623417],[1465776000000, 19.623417],[1465862400000, 19.551570],[1465948800000, 19.355683],[1466121600000, 19.152407],[1466208000000, 19.307432],[1466294400000, 19.307432],[1466380800000, 19.307432],[1466467200000, 19.307432],[1466553600000, 19.488921],[1466640000000, 19.510036],[1466726400000, 19.521367],[1466812800000, 19.125138],[1466899200000, 19.125138],[1466985600000, 19.125138],[1467072000000, 19.125138],[1467158400000, 19.125138],[1467244800000, 19.132047]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });