$(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: [[1543622400000,3.2914],[1543708800000,3.2914],[1543795200000,3.2914],[1543881600000,3.29491],[1543968000000,3.3262],[1544054400000,3.29224],[1544140800000,3.26154],[1544227200000,3.26276],[1544313600000,3.26276],[1544400000000,3.26276],[1544486400000,3.27554],[1544572800000,3.24974],[1544659200000,3.24383],[1544745600000,3.25374],[1544832000000,3.23075],[1544918400000,3.23075],[1545004800000,3.23075],[1545091200000,3.23245],[1545177600000,3.20561],[1545264000000,3.18101],[1545350400000,3.19069],[1545436800000,3.14932],[1545523200000,3.14932],[1545609600000,3.14932],[1545696000000,3.14932],[1545782400000,3.14932],[1545868800000,3.10993],[1545955200000,3.13301],[1546041600000,3.17975],[1546128000000,3.17975],[1546214400000,3.17975]], 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: [[1543622400000, 3.291400],[1543622400000, 3.291400],[1543708800000, 3.291400],[1543795200000, 3.291400],[1543881600000, 3.294907],[1543968000000, 3.326202],[1544054400000, 3.292243],[1544140800000, 3.261543],[1544227200000, 3.262757],[1544313600000, 3.262757],[1544400000000, 3.262757],[1544486400000, 3.275535],[1544572800000, 3.249738],[1544659200000, 3.243830],[1544745600000, 3.253745],[1544832000000, 3.230750],[1544918400000, 3.230750],[1545004800000, 3.230750],[1545091200000, 3.232446],[1545177600000, 3.205606],[1545264000000, 3.181006],[1545350400000, 3.190692],[1545436800000, 3.149323],[1545523200000, 3.149323],[1545609600000, 3.149323],[1545696000000, 3.149323],[1545782400000, 3.149323],[1545868800000, 3.109932],[1545955200000, 3.133015],[1546041600000, 3.179745],[1546128000000, 3.179745],[1546214400000, 3.179745]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });