$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1543622400000,21.2081],[1543708800000,21.2081],[1543795200000,21.2081],[1543881600000,21.3819],[1543968000000,21.3485],[1544054400000,21.069],[1544140800000,20.7802],[1544227200000,20.7741],[1544313600000,20.7741],[1544400000000,20.7741],[1544486400000,20.8536],[1544572800000,20.6935],[1544659200000,20.7984],[1544745600000,20.8567],[1544832000000,20.811],[1544918400000,20.811],[1545004800000,20.811],[1545091200000,20.8214],[1545177600000,20.7768],[1545264000000,20.6178],[1545350400000,20.4735],[1545436800000,20.2556],[1545523200000,20.2556],[1545609600000,20.2556],[1545696000000,20.2556],[1545782400000,20.2556],[1545868800000,20.0613],[1545955200000,20.152],[1546041600000,20.327],[1546128000000,20.327],[1546214400000,20.327]], 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, 21.208149],[1543622400000, 21.208149],[1543708800000, 21.208149],[1543795200000, 21.208149],[1543881600000, 21.381921],[1543968000000, 21.348459],[1544054400000, 21.068957],[1544140800000, 20.780155],[1544227200000, 20.774097],[1544313600000, 20.774097],[1544400000000, 20.774097],[1544486400000, 20.853609],[1544572800000, 20.693491],[1544659200000, 20.798359],[1544745600000, 20.856692],[1544832000000, 20.810993],[1544918400000, 20.810993],[1545004800000, 20.810993],[1545091200000, 20.821388],[1545177600000, 20.776841],[1545264000000, 20.617822],[1545350400000, 20.473469],[1545436800000, 20.255574],[1545523200000, 20.255574],[1545609600000, 20.255574],[1545696000000, 20.255574],[1545782400000, 20.255574],[1545868800000, 20.061326],[1545955200000, 20.151955],[1546041600000, 20.326969],[1546128000000, 20.326969],[1546214400000, 20.326969]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });