$(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: [[1556668800000,3.05157],[1556755200000,3.05157],[1556841600000,3.05551],[1556928000000,3.02087],[1557014400000,3.02087],[1557100800000,3.02087],[1557187200000,3.03077],[1557273600000,3.01842],[1557360000000,2.99178],[1557446400000,2.99178],[1557532800000,2.99708],[1557619200000,2.99708],[1557705600000,2.99708],[1557792000000,2.99184],[1557878400000,2.99729],[1557964800000,3.00951],[1558051200000,3.02646],[1558137600000,3.00742],[1558224000000,3.00742],[1558310400000,3.00742],[1558396800000,2.98646],[1558483200000,2.97653],[1558569600000,3.01082],[1558656000000,3.00743],[1558742400000,3.03587],[1558828800000,3.03587],[1558915200000,3.03587],[1559001600000,3.02283],[1559088000000,3.04161],[1559174400000,3.04594],[1559260800000,3.06437]], 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: [[1556668800000, 3.051573],[1556668800000, 3.051573],[1556755200000, 3.051573],[1556841600000, 3.055514],[1556928000000, 3.020868],[1557014400000, 3.020868],[1557100800000, 3.020868],[1557187200000, 3.030773],[1557273600000, 3.018422],[1557360000000, 2.991784],[1557446400000, 2.991784],[1557532800000, 2.997078],[1557619200000, 2.997078],[1557705600000, 2.997078],[1557792000000, 2.991840],[1557878400000, 2.997290],[1557964800000, 3.009508],[1558051200000, 3.026465],[1558137600000, 3.007417],[1558224000000, 3.007417],[1558310400000, 3.007417],[1558396800000, 2.986464],[1558483200000, 2.976531],[1558569600000, 3.010818],[1558656000000, 3.007429],[1558742400000, 3.035870],[1558828800000, 3.035870],[1558915200000, 3.035870],[1559001600000, 3.022825],[1559088000000, 3.041608],[1559174400000, 3.045940],[1559260800000, 3.064373]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });