$(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: [[1517443200000,22.6845],[1517529600000,22.6235],[1517616000000,22.6403],[1517702400000,22.6403],[1517788800000,22.6403],[1517875200000,22.3116],[1517961600000,21.8598],[1518048000000,21.6641],[1518134400000,21.5766],[1518220800000,21.4597],[1518307200000,21.4597],[1518393600000,21.4597],[1518480000000,21.3355],[1518566400000,21.184],[1518652800000,21.1961],[1518739200000,21.4246],[1518825600000,21.583],[1518912000000,21.583],[1518998400000,21.583],[1519084800000,21.4994],[1519171200000,21.4801],[1519257600000,21.2984],[1519344000000,21.3185],[1519430400000,21.2587],[1519516800000,21.2587],[1519603200000,21.2587],[1519689600000,21.3051],[1519776000000,21.1855]], 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: [[1517443200000, 22.684525],[1517443200000, 22.684525],[1517529600000, 22.623510],[1517616000000, 22.640290],[1517702400000, 22.640290],[1517788800000, 22.640290],[1517875200000, 22.311615],[1517961600000, 21.859828],[1518048000000, 21.664102],[1518134400000, 21.576648],[1518220800000, 21.459744],[1518307200000, 21.459744],[1518393600000, 21.459744],[1518480000000, 21.335543],[1518566400000, 21.184038],[1518652800000, 21.196097],[1518739200000, 21.424650],[1518825600000, 21.583014],[1518912000000, 21.583014],[1518998400000, 21.583014],[1519084800000, 21.499356],[1519171200000, 21.480109],[1519257600000, 21.298425],[1519344000000, 21.318490],[1519430400000, 21.258710],[1519516800000, 21.258710],[1519603200000, 21.258710],[1519689600000, 21.305080],[1519776000000, 21.185507]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });