$(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: [[1514764800000,20.9766],[1514851200000,20.9766],[1514937600000,20.9766],[1515024000000,20.9737],[1515110400000,21.0672],[1515196800000,21.2411],[1515283200000,21.2411],[1515369600000,21.2411],[1515456000000,21.2411],[1515542400000,21.1223],[1515628800000,21.2577],[1515715200000,21.3565],[1515801600000,21.5084],[1515888000000,21.5084],[1515974400000,21.5084],[1516060800000,21.619],[1516147200000,21.651],[1516233600000,21.6562],[1516320000000,21.7677],[1516406400000,21.8502],[1516492800000,21.8502],[1516579200000,21.8502],[1516665600000,21.8817],[1516752000000,21.8763],[1516838400000,22.0348],[1516924800000,22.0122],[1517011200000,21.836],[1517097600000,21.836],[1517184000000,21.836],[1517270400000,21.5576],[1517356800000,21.3696]], 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: [[1514764800000, 20.976593],[1514764800000, 20.976593],[1514851200000, 20.976593],[1514937600000, 20.976593],[1515024000000, 20.973728],[1515110400000, 21.067211],[1515196800000, 21.241112],[1515283200000, 21.241112],[1515369600000, 21.241112],[1515456000000, 21.241112],[1515542400000, 21.122339],[1515628800000, 21.257689],[1515715200000, 21.356498],[1515801600000, 21.508363],[1515888000000, 21.508363],[1515974400000, 21.508363],[1516060800000, 21.619011],[1516147200000, 21.650973],[1516233600000, 21.656213],[1516320000000, 21.767699],[1516406400000, 21.850242],[1516492800000, 21.850242],[1516579200000, 21.850242],[1516665600000, 21.881702],[1516752000000, 21.876328],[1516838400000, 22.034795],[1516924800000, 22.012239],[1517011200000, 21.835959],[1517097600000, 21.835959],[1517184000000, 21.835959],[1517270400000, 21.557559],[1517356800000, 21.369606]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });