$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1514764800000,1.30612],[1514851200000,1.30612],[1514937600000,1.30612],[1515024000000,1.31269],[1515110400000,1.32464],[1515196800000,1.3273],[1515283200000,1.3273],[1515369600000,1.3273],[1515456000000,1.3273],[1515542400000,1.31788],[1515628800000,1.32858],[1515715200000,1.33805],[1515801600000,1.35711],[1515888000000,1.35711],[1515974400000,1.35711],[1516060800000,1.37372],[1516147200000,1.37334],[1516233600000,1.37467],[1516320000000,1.3881],[1516406400000,1.3899],[1516492800000,1.3899],[1516579200000,1.3899],[1516665600000,1.39144],[1516752000000,1.39183],[1516838400000,1.40516],[1516924800000,1.40515],[1517011200000,1.40013],[1517097600000,1.40013],[1517184000000,1.40013],[1517270400000,1.38223],[1517356800000,1.37346]], 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, 1.306119],[1514764800000, 1.306119],[1514851200000, 1.306119],[1514937600000, 1.306119],[1515024000000, 1.312695],[1515110400000, 1.324638],[1515196800000, 1.327300],[1515283200000, 1.327300],[1515369600000, 1.327300],[1515456000000, 1.327300],[1515542400000, 1.317882],[1515628800000, 1.328585],[1515715200000, 1.338052],[1515801600000, 1.357114],[1515888000000, 1.357114],[1515974400000, 1.357114],[1516060800000, 1.373723],[1516147200000, 1.373338],[1516233600000, 1.374672],[1516320000000, 1.388104],[1516406400000, 1.389900],[1516492800000, 1.389900],[1516579200000, 1.389900],[1516665600000, 1.391438],[1516752000000, 1.391825],[1516838400000, 1.405159],[1516924800000, 1.405155],[1517011200000, 1.400130],[1517097600000, 1.400130],[1517184000000, 1.400130],[1517270400000, 1.382234],[1517356800000, 1.373459]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });