$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1561939200000,19.3363],[1562025600000,19.3644],[1562112000000,19.3151],[1562198400000,19.2012],[1562284800000,19.0782],[1562371200000,18.9445],[1562457600000,18.9445],[1562544000000,18.9445],[1562630400000,18.8318],[1562716800000,18.7283],[1562803200000,18.884],[1562889600000,19.0459],[1562976000000,18.9368],[1563062400000,18.9368],[1563148800000,18.9368],[1563235200000,18.9802],[1563321600000,19.0543],[1563408000000,18.9906],[1563494400000,19.1307],[1563580800000,18.9923],[1563667200000,18.9923],[1563753600000,18.9923],[1563840000000,18.8458],[1563926400000,18.7928],[1564012800000,18.7057],[1564099200000,18.6634],[1564185600000,18.5899],[1564272000000,18.5899],[1564358400000,18.5899],[1564444800000,18.412],[1564531200000,18.3082]], 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, 19.336268],[1561939200000, 19.336268],[1562025600000, 19.364378],[1562112000000, 19.315091],[1562198400000, 19.201227],[1562284800000, 19.078199],[1562371200000, 18.944505],[1562457600000, 18.944505],[1562544000000, 18.944505],[1562630400000, 18.831786],[1562716800000, 18.728278],[1562803200000, 18.884042],[1562889600000, 19.045901],[1562976000000, 18.936755],[1563062400000, 18.936755],[1563148800000, 18.936755],[1563235200000, 18.980202],[1563321600000, 19.054304],[1563408000000, 18.990592],[1563494400000, 19.130662],[1563580800000, 18.992271],[1563667200000, 18.992271],[1563753600000, 18.992271],[1563840000000, 18.845839],[1563926400000, 18.792789],[1564012800000, 18.705685],[1564099200000, 18.663400],[1564185600000, 18.589929],[1564272000000, 18.589929],[1564358400000, 18.589929],[1564444800000, 18.412030],[1564531200000, 18.308175]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });