$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1514764800000,3.40221],[1514851200000,3.40221],[1514937600000,3.40221],[1515024000000,3.41301],[1515110400000,3.44106],[1515196800000,3.45521],[1515283200000,3.45521],[1515369600000,3.45521],[1515456000000,3.45521],[1515542400000,3.42383],[1515628800000,3.46264],[1515715200000,3.48087],[1515801600000,3.5216],[1515888000000,3.5216],[1515974400000,3.5216],[1516060800000,3.56664],[1516147200000,3.56743],[1516233600000,3.5541],[1516320000000,3.58163],[1516406400000,3.59486],[1516492800000,3.59486],[1516579200000,3.59486],[1516665600000,3.59377],[1516752000000,3.59157],[1516838400000,3.62626],[1516924800000,3.63224],[1517011200000,3.62258],[1517097600000,3.62258],[1517184000000,3.62258],[1517270400000,3.57445],[1517356800000,3.55632]], 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, 3.402209],[1514764800000, 3.402209],[1514851200000, 3.402209],[1514937600000, 3.402209],[1515024000000, 3.413007],[1515110400000, 3.441064],[1515196800000, 3.455208],[1515283200000, 3.455208],[1515369600000, 3.455208],[1515456000000, 3.455208],[1515542400000, 3.423827],[1515628800000, 3.462635],[1515715200000, 3.480872],[1515801600000, 3.521598],[1515888000000, 3.521598],[1515974400000, 3.521598],[1516060800000, 3.566637],[1516147200000, 3.567425],[1516233600000, 3.554105],[1516320000000, 3.581634],[1516406400000, 3.594858],[1516492800000, 3.594858],[1516579200000, 3.594858],[1516665600000, 3.593770],[1516752000000, 3.591573],[1516838400000, 3.626263],[1516924800000, 3.632239],[1517011200000, 3.622579],[1517097600000, 3.622579],[1517184000000, 3.622579],[1517270400000, 3.574452],[1517356800000, 3.556322]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });