$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1543622400000,4.29608],[1543708800000,4.29608],[1543795200000,4.29608],[1543881600000,4.27827],[1543968000000,4.29996],[1544054400000,4.25614],[1544140800000,4.24012],[1544227200000,4.23882],[1544313600000,4.23882],[1544400000000,4.23882],[1544486400000,4.2518],[1544572800000,4.22486],[1544659200000,4.22705],[1544745600000,4.24499],[1544832000000,4.20786],[1544918400000,4.20786],[1545004800000,4.20786],[1545091200000,4.23601],[1545177600000,4.24273],[1545264000000,4.23312],[1545350400000,4.22893],[1545436800000,4.19353],[1545523200000,4.19353],[1545609600000,4.19353],[1545696000000,4.19353],[1545782400000,4.19353],[1545868800000,4.16633],[1545955200000,4.18303],[1546041600000,4.24707],[1546128000000,4.24707],[1546214400000,4.24707]], 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, 4.296084],[1543622400000, 4.296084],[1543708800000, 4.296084],[1543795200000, 4.296084],[1543881600000, 4.278275],[1543968000000, 4.299958],[1544054400000, 4.256138],[1544140800000, 4.240115],[1544227200000, 4.238816],[1544313600000, 4.238816],[1544400000000, 4.238816],[1544486400000, 4.251802],[1544572800000, 4.224864],[1544659200000, 4.227048],[1544745600000, 4.244989],[1544832000000, 4.207859],[1544918400000, 4.207859],[1545004800000, 4.207859],[1545091200000, 4.236007],[1545177600000, 4.242732],[1545264000000, 4.233120],[1545350400000, 4.228932],[1545436800000, 4.193531],[1545523200000, 4.193531],[1545609600000, 4.193531],[1545696000000, 4.193531],[1545782400000, 4.193531],[1545868800000, 4.166333],[1545955200000, 4.183031],[1546041600000, 4.247069],[1546128000000, 4.247069],[1546214400000, 4.247069]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });