$(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: [[1522540800000,3.34948],[1522627200000,3.34948],[1522713600000,3.33088],[1522800000000,3.36383],[1522886400000,3.34636],[1522972800000,3.33325],[1523059200000,3.32166],[1523145600000,3.32166],[1523232000000,3.32166],[1523318400000,3.32166],[1523404800000,3.32832],[1523491200000,3.33704],[1523577600000,3.33666],[1523664000000,3.36439],[1523750400000,3.36439],[1523836800000,3.36439],[1523923200000,3.36346],[1524009600000,3.35805],[1524096000000,3.37082],[1524182400000,3.38878],[1524268800000,3.35482],[1524355200000,3.35482],[1524441600000,3.35482],[1524528000000,3.32154],[1524614400000,3.32021],[1524700800000,3.29837],[1524787200000,3.2994],[1524873600000,3.27344],[1524960000000,3.27344],[1525046400000,3.27344]], 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: [[1522540800000, 3.349479],[1522540800000, 3.349479],[1522627200000, 3.349479],[1522713600000, 3.330879],[1522800000000, 3.363827],[1522886400000, 3.346362],[1522972800000, 3.333254],[1523059200000, 3.321656],[1523145600000, 3.321656],[1523232000000, 3.321656],[1523318400000, 3.321656],[1523404800000, 3.328325],[1523491200000, 3.337039],[1523577600000, 3.336665],[1523664000000, 3.364392],[1523750400000, 3.364392],[1523836800000, 3.364392],[1523923200000, 3.363464],[1524009600000, 3.358054],[1524096000000, 3.370816],[1524182400000, 3.388780],[1524268800000, 3.354821],[1524355200000, 3.354821],[1524441600000, 3.354821],[1524528000000, 3.321537],[1524614400000, 3.320209],[1524700800000, 3.298368],[1524787200000, 3.299397],[1524873600000, 3.273439],[1524960000000, 3.273439],[1525046400000, 3.273439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });