$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1543622400000,1.23505],[1543708800000,1.23505],[1543795200000,1.23505],[1543881600000,1.23164],[1543968000000,1.2389],[1544054400000,1.22706],[1544140800000,1.22233],[1544227200000,1.2239],[1544313600000,1.2239],[1544400000000,1.2239],[1544486400000,1.2269],[1544572800000,1.22015],[1544659200000,1.21979],[1544745600000,1.22682],[1544832000000,1.21789],[1544918400000,1.21789],[1545004800000,1.21789],[1545091200000,1.22575],[1545177600000,1.23025],[1545264000000,1.22691],[1545350400000,1.22586],[1545436800000,1.2111],[1545523200000,1.2111],[1545609600000,1.2111],[1545696000000,1.2111],[1545782400000,1.2111],[1545868800000,1.2003],[1545955200000,1.20796],[1546041600000,1.23028],[1546128000000,1.23028],[1546214400000,1.23028]], 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, 1.235052],[1543622400000, 1.235052],[1543708800000, 1.235052],[1543795200000, 1.235052],[1543881600000, 1.231640],[1543968000000, 1.238905],[1544054400000, 1.227056],[1544140800000, 1.222329],[1544227200000, 1.223897],[1544313600000, 1.223897],[1544400000000, 1.223897],[1544486400000, 1.226901],[1544572800000, 1.220151],[1544659200000, 1.219791],[1544745600000, 1.226821],[1544832000000, 1.217888],[1544918400000, 1.217888],[1545004800000, 1.217888],[1545091200000, 1.225751],[1545177600000, 1.230249],[1545264000000, 1.226906],[1545350400000, 1.225865],[1545436800000, 1.211104],[1545523200000, 1.211104],[1545609600000, 1.211104],[1545696000000, 1.211104],[1545782400000, 1.211104],[1545868800000, 1.200305],[1545955200000, 1.207964],[1546041600000, 1.230279],[1546128000000, 1.230279],[1546214400000, 1.230279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });