$(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: [[1541030400000,20.2758],[1541116800000,20.432],[1541203200000,20.4764],[1541289600000,20.4764],[1541376000000,20.4764],[1541462400000,20.3523],[1541548800000,20.3581],[1541635200000,20.3733],[1541721600000,20.3687],[1541808000000,20.2508],[1541894400000,20.2508],[1541980800000,20.2508],[1542067200000,20.2015],[1542153600000,20.2061],[1542240000000,20.1728],[1542326400000,20.1662],[1542412800000,20.1709],[1542499200000,20.1709],[1542585600000,20.1709],[1542672000000,20.2288],[1542758400000,20.2291],[1542844800000,20.2314],[1542931200000,20.2138],[1543017600000,20.2203],[1543104000000,20.2203],[1543190400000,20.2203],[1543276800000,20.3159],[1543363200000,20.4324],[1543449600000,20.5163],[1543536000000,20.7196]], 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: [[1541030400000, 20.275799],[1541030400000, 20.275799],[1541116800000, 20.431981],[1541203200000, 20.476376],[1541289600000, 20.476376],[1541376000000, 20.476376],[1541462400000, 20.352317],[1541548800000, 20.358079],[1541635200000, 20.373346],[1541721600000, 20.368704],[1541808000000, 20.250756],[1541894400000, 20.250756],[1541980800000, 20.250756],[1542067200000, 20.201517],[1542153600000, 20.206082],[1542240000000, 20.172810],[1542326400000, 20.166215],[1542412800000, 20.170887],[1542499200000, 20.170887],[1542585600000, 20.170887],[1542672000000, 20.228813],[1542758400000, 20.229105],[1542844800000, 20.231361],[1542931200000, 20.213760],[1543017600000, 20.220329],[1543104000000, 20.220329],[1543190400000, 20.220329],[1543276800000, 20.315948],[1543363200000, 20.432372],[1543449600000, 20.516333],[1543536000000, 20.719576]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });