$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1517443200000,21.2946],[1517529600000,21.2344],[1517616000000,21.2302],[1517702400000,21.2302],[1517788800000,21.2302],[1517875200000,21.0604],[1517961600000,20.753],[1518048000000,20.5391],[1518134400000,20.403],[1518220800000,20.3474],[1518307200000,20.3474],[1518393600000,20.3474],[1518480000000,20.2475],[1518566400000,20.1842],[1518652800000,20.2046],[1518739200000,20.4034],[1518825600000,20.5934],[1518912000000,20.5934],[1518998400000,20.5934],[1519084800000,20.5718],[1519171200000,20.531],[1519257600000,20.4264],[1519344000000,20.474],[1519430400000,20.4216],[1519516800000,20.4216],[1519603200000,20.4216],[1519689600000,20.5042],[1519776000000,20.4182]], 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, 21.294597],[1517443200000, 21.294597],[1517529600000, 21.234444],[1517616000000, 21.230187],[1517702400000, 21.230187],[1517788800000, 21.230187],[1517875200000, 21.060356],[1517961600000, 20.753035],[1518048000000, 20.539074],[1518134400000, 20.402967],[1518220800000, 20.347377],[1518307200000, 20.347377],[1518393600000, 20.347377],[1518480000000, 20.247504],[1518566400000, 20.184178],[1518652800000, 20.204604],[1518739200000, 20.403433],[1518825600000, 20.593440],[1518912000000, 20.593440],[1518998400000, 20.593440],[1519084800000, 20.571829],[1519171200000, 20.530982],[1519257600000, 20.426430],[1519344000000, 20.473999],[1519430400000, 20.421650],[1519516800000, 20.421650],[1519603200000, 20.421650],[1519689600000, 20.504187],[1519776000000, 20.418209]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });