$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1561939200000,36.3904],[1562025600000,36.377],[1562112000000,36.278],[1562198400000,36.0907],[1562284800000,35.8496],[1562371200000,35.5815],[1562457600000,35.5815],[1562544000000,35.5815],[1562630400000,35.3612],[1562716800000,35.1696],[1562803200000,35.4758],[1562889600000,35.7237],[1562976000000,35.6336],[1563062400000,35.6336],[1563148800000,35.6336],[1563235200000,35.6446],[1563321600000,35.7291],[1563408000000,35.71],[1563494400000,35.9588],[1563580800000,35.7135],[1563667200000,35.7135],[1563753600000,35.7135],[1563840000000,35.4343],[1563926400000,35.3665],[1564012800000,35.2009],[1564099200000,35.1413],[1564185600000,35.0365],[1564272000000,35.0365],[1564358400000,35.0365],[1564444800000,34.7392],[1564531200000,34.5055]], 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: [[1561939200000, 36.390444],[1561939200000, 36.390444],[1562025600000, 36.376990],[1562112000000, 36.277991],[1562198400000, 36.090732],[1562284800000, 35.849610],[1562371200000, 35.581488],[1562457600000, 35.581488],[1562544000000, 35.581488],[1562630400000, 35.361173],[1562716800000, 35.169614],[1562803200000, 35.475793],[1562889600000, 35.723653],[1562976000000, 35.633629],[1563062400000, 35.633629],[1563148800000, 35.633629],[1563235200000, 35.644592],[1563321600000, 35.729135],[1563408000000, 35.709968],[1563494400000, 35.958768],[1563580800000, 35.713528],[1563667200000, 35.713528],[1563753600000, 35.713528],[1563840000000, 35.434325],[1563926400000, 35.366472],[1564012800000, 35.200869],[1564099200000, 35.141327],[1564185600000, 35.036508],[1564272000000, 35.036508],[1564358400000, 35.036508],[1564444800000, 34.739197],[1564531200000, 34.505477]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });