$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1543622400000,20.5752],[1543708800000,20.5752],[1543795200000,20.5752],[1543881600000,20.609],[1543968000000,20.6359],[1544054400000,20.4662],[1544140800000,20.3381],[1544227200000,20.3035],[1544313600000,20.3035],[1544400000000,20.3035],[1544486400000,20.256],[1544572800000,20.1926],[1544659200000,20.2549],[1544745600000,20.3295],[1544832000000,20.2229],[1544918400000,20.2229],[1545004800000,20.2229],[1545091200000,20.2884],[1545177600000,20.3224],[1545264000000,20.2338],[1545350400000,20.1418],[1545436800000,20.0199],[1545523200000,20.0199],[1545609600000,20.0199],[1545696000000,20.0199],[1545782400000,20.0199],[1545868800000,19.8704],[1545955200000,20.001],[1546041600000,20.275],[1546128000000,20.275],[1546214400000,20.275]], 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, 20.575212],[1543622400000, 20.575212],[1543708800000, 20.575212],[1543795200000, 20.575212],[1543881600000, 20.608964],[1543968000000, 20.635929],[1544054400000, 20.466211],[1544140800000, 20.338110],[1544227200000, 20.303504],[1544313600000, 20.303504],[1544400000000, 20.303504],[1544486400000, 20.255966],[1544572800000, 20.192617],[1544659200000, 20.254934],[1544745600000, 20.329488],[1544832000000, 20.222862],[1544918400000, 20.222862],[1545004800000, 20.222862],[1545091200000, 20.288431],[1545177600000, 20.322389],[1545264000000, 20.233787],[1545350400000, 20.141777],[1545436800000, 20.019879],[1545523200000, 20.019879],[1545609600000, 20.019879],[1545696000000, 20.019879],[1545782400000, 20.019879],[1545868800000, 19.870388],[1545955200000, 20.000979],[1546041600000, 20.274989],[1546128000000, 20.274989],[1546214400000, 20.274989]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });