$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1525132800000,4.24399],[1525219200000,4.24399],[1525305600000,4.21603],[1525392000000,4.21612],[1525478400000,4.22664],[1525564800000,4.22664],[1525651200000,4.22664],[1525737600000,4.20087],[1525824000000,4.17728],[1525910400000,4.17728],[1525996800000,4.1762],[1526083200000,4.19672],[1526169600000,4.19672],[1526256000000,4.19672],[1526342400000,4.211],[1526428800000,4.18116],[1526515200000,4.14619],[1526601600000,4.15084],[1526688000000,4.13583],[1526774400000,4.13583],[1526860800000,4.13583],[1526947200000,4.11861],[1527033600000,4.12851],[1527120000000,4.0991],[1527206400000,4.11014],[1527292800000,4.09875],[1527379200000,4.09875],[1527465600000,4.09875],[1527552000000,4.09875],[1527638400000,4.05288],[1527724800000,4.08442]], 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: [[1525132800000, 4.243990],[1525132800000, 4.243990],[1525219200000, 4.243990],[1525305600000, 4.216033],[1525392000000, 4.216118],[1525478400000, 4.226639],[1525564800000, 4.226639],[1525651200000, 4.226639],[1525737600000, 4.200868],[1525824000000, 4.177281],[1525910400000, 4.177281],[1525996800000, 4.176204],[1526083200000, 4.196717],[1526169600000, 4.196717],[1526256000000, 4.196717],[1526342400000, 4.211004],[1526428800000, 4.181161],[1526515200000, 4.146188],[1526601600000, 4.150843],[1526688000000, 4.135832],[1526774400000, 4.135832],[1526860800000, 4.135832],[1526947200000, 4.118613],[1527033600000, 4.128512],[1527120000000, 4.099102],[1527206400000, 4.110140],[1527292800000, 4.098749],[1527379200000, 4.098749],[1527465600000, 4.098749],[1527552000000, 4.098749],[1527638400000, 4.052877],[1527724800000, 4.084424]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });