$(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: [[1543622400000,3.10657],[1543708800000,3.10657],[1543795200000,3.10657],[1543881600000,3.11908],[1543968000000,3.13696],[1544054400000,3.12163],[1544140800000,3.0918],[1544227200000,3.08177],[1544313600000,3.08177],[1544400000000,3.08177],[1544486400000,3.07123],[1544572800000,3.06252],[1544659200000,3.04562],[1544745600000,3.07587],[1544832000000,3.06151],[1544918400000,3.06151],[1545004800000,3.06151],[1545091200000,3.07867],[1545177600000,3.08317],[1545264000000,3.05739],[1545350400000,3.07991],[1545436800000,3.04801],[1545523200000,3.04801],[1545609600000,3.04801],[1545696000000,3.04801],[1545782400000,3.04801],[1545868800000,3.00761],[1545955200000,3.04069],[1546041600000,3.08584],[1546128000000,3.08584],[1546214400000,3.08584]], 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.106569],[1543622400000, 3.106569],[1543708800000, 3.106569],[1543795200000, 3.106569],[1543881600000, 3.119080],[1543968000000, 3.136956],[1544054400000, 3.121634],[1544140800000, 3.091798],[1544227200000, 3.081766],[1544313600000, 3.081766],[1544400000000, 3.081766],[1544486400000, 3.071230],[1544572800000, 3.062524],[1544659200000, 3.045621],[1544745600000, 3.075866],[1544832000000, 3.061514],[1544918400000, 3.061514],[1545004800000, 3.061514],[1545091200000, 3.078667],[1545177600000, 3.083165],[1545264000000, 3.057387],[1545350400000, 3.079906],[1545436800000, 3.048007],[1545523200000, 3.048007],[1545609600000, 3.048007],[1545696000000, 3.048007],[1545782400000, 3.048007],[1545868800000, 3.007608],[1545955200000, 3.040694],[1546041600000, 3.085843],[1546128000000, 3.085843],[1546214400000, 3.085843]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });