$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1561939200000,2.82158],[1562025600000,2.82046],[1562112000000,2.80253],[1562198400000,2.79706],[1562284800000,2.77574],[1562371200000,2.74222],[1562457600000,2.74222],[1562544000000,2.74222],[1562630400000,2.70945],[1562716800000,2.68583],[1562803200000,2.71799],[1562889600000,2.75191],[1562976000000,2.74732],[1563062400000,2.74732],[1563148800000,2.74732],[1563235200000,2.74788],[1563321600000,2.75388],[1563408000000,2.75791],[1563494400000,2.77945],[1563580800000,2.75491],[1563667200000,2.75491],[1563753600000,2.75491],[1563840000000,2.7275],[1563926400000,2.70935],[1564012800000,2.69963],[1564099200000,2.69938],[1564185600000,2.6836],[1564272000000,2.6836],[1564358400000,2.6836],[1564444800000,2.65458],[1564531200000,2.62843]], 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, 2.821583],[1561939200000, 2.821583],[1562025600000, 2.820460],[1562112000000, 2.802532],[1562198400000, 2.797056],[1562284800000, 2.775739],[1562371200000, 2.742220],[1562457600000, 2.742220],[1562544000000, 2.742220],[1562630400000, 2.709447],[1562716800000, 2.685834],[1562803200000, 2.717986],[1562889600000, 2.751907],[1562976000000, 2.747324],[1563062400000, 2.747324],[1563148800000, 2.747324],[1563235200000, 2.747880],[1563321600000, 2.753885],[1563408000000, 2.757905],[1563494400000, 2.779446],[1563580800000, 2.754913],[1563667200000, 2.754913],[1563753600000, 2.754913],[1563840000000, 2.727499],[1563926400000, 2.709348],[1564012800000, 2.699625],[1564099200000, 2.699379],[1564185600000, 2.683598],[1564272000000, 2.683598],[1564358400000, 2.683598],[1564444800000, 2.654585],[1564531200000, 2.628426]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });