$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1561939200000,0.068917],[1562025600000,0.068843],[1562112000000,0.06854],[1562198400000,0.067827],[1562284800000,0.067541],[1562371200000,0.067039],[1562457600000,0.067039],[1562544000000,0.067039],[1562630400000,0.066754],[1562716800000,0.066338],[1562803200000,0.066866],[1562889600000,0.06735],[1562976000000,0.067209],[1563062400000,0.067209],[1563148800000,0.067209],[1563235200000,0.067133],[1563321600000,0.067529],[1563408000000,0.067353],[1563494400000,0.067718],[1563580800000,0.067075],[1563667200000,0.067075],[1563753600000,0.067075],[1563840000000,0.066689],[1563926400000,0.066734],[1564012800000,0.066414],[1564099200000,0.066235],[1564185600000,0.066091],[1564272000000,0.066091],[1564358400000,0.066091],[1564444800000,0.065574],[1564531200000,0.065232]], 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, 0.068917],[1561939200000, 0.068917],[1562025600000, 0.068843],[1562112000000, 0.068540],[1562198400000, 0.067827],[1562284800000, 0.067541],[1562371200000, 0.067039],[1562457600000, 0.067039],[1562544000000, 0.067039],[1562630400000, 0.066754],[1562716800000, 0.066338],[1562803200000, 0.066866],[1562889600000, 0.067350],[1562976000000, 0.067209],[1563062400000, 0.067209],[1563148800000, 0.067209],[1563235200000, 0.067133],[1563321600000, 0.067529],[1563408000000, 0.067353],[1563494400000, 0.067718],[1563580800000, 0.067075],[1563667200000, 0.067075],[1563753600000, 0.067075],[1563840000000, 0.066689],[1563926400000, 0.066734],[1564012800000, 0.066414],[1564099200000, 0.066235],[1564185600000, 0.066091],[1564272000000, 0.066091],[1564358400000, 0.066091],[1564444800000, 0.065574],[1564531200000, 0.065232]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });