$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1561939200000,3.07346],[1562025600000,3.07097],[1562112000000,3.05898],[1562198400000,3.04499],[1562284800000,3.03256],[1562371200000,3.00555],[1562457600000,3.00555],[1562544000000,3.00555],[1562630400000,2.96498],[1562716800000,2.94491],[1562803200000,2.97492],[1562889600000,3.02289],[1562976000000,3.01309],[1563062400000,3.01309],[1563148800000,3.01309],[1563235200000,3.01461],[1563321600000,3.02579],[1563408000000,3.01438],[1563494400000,3.02737],[1563580800000,3.01445],[1563667200000,3.01445],[1563753600000,3.01445],[1563840000000,2.98715],[1563926400000,2.95801],[1564012800000,2.95004],[1564099200000,2.94917],[1564185600000,2.92373],[1564272000000,2.92373],[1564358400000,2.92373],[1564444800000,2.89662],[1564531200000,2.87367]], 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, 3.073461],[1561939200000, 3.073461],[1562025600000, 3.070972],[1562112000000, 3.058980],[1562198400000, 3.044987],[1562284800000, 3.032565],[1562371200000, 3.005553],[1562457600000, 3.005553],[1562544000000, 3.005553],[1562630400000, 2.964976],[1562716800000, 2.944910],[1562803200000, 2.974923],[1562889600000, 3.022889],[1562976000000, 3.013095],[1563062400000, 3.013095],[1563148800000, 3.013095],[1563235200000, 3.014606],[1563321600000, 3.025792],[1563408000000, 3.014376],[1563494400000, 3.027365],[1563580800000, 3.014449],[1563667200000, 3.014449],[1563753600000, 3.014449],[1563840000000, 2.987146],[1563926400000, 2.958006],[1564012800000, 2.950045],[1564099200000, 2.949174],[1564185600000, 2.923733],[1564272000000, 2.923733],[1564358400000, 2.923733],[1564444800000, 2.896616],[1564531200000, 2.873674]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });