$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1543622400000,1.64179],[1543708800000,1.64179],[1543795200000,1.64179],[1543881600000,1.6427],[1543968000000,1.64311],[1544054400000,1.63374],[1544140800000,1.62201],[1544227200000,1.61779],[1544313600000,1.61779],[1544400000000,1.61779],[1544486400000,1.61319],[1544572800000,1.60902],[1544659200000,1.61291],[1544745600000,1.61391],[1544832000000,1.61123],[1544918400000,1.61123],[1545004800000,1.61123],[1545091200000,1.61209],[1545177600000,1.60909],[1545264000000,1.60062],[1545350400000,1.59431],[1545436800000,1.58605],[1545523200000,1.58605],[1545609600000,1.58605],[1545696000000,1.58605],[1545782400000,1.58605],[1545868800000,1.58489],[1545955200000,1.60156],[1546041600000,1.61516],[1546128000000,1.61516],[1546214400000,1.61516]], 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.641794],[1543622400000, 1.641794],[1543708800000, 1.641794],[1543795200000, 1.641794],[1543881600000, 1.642697],[1543968000000, 1.643109],[1544054400000, 1.633739],[1544140800000, 1.622009],[1544227200000, 1.617792],[1544313600000, 1.617792],[1544400000000, 1.617792],[1544486400000, 1.613187],[1544572800000, 1.609023],[1544659200000, 1.612907],[1544745600000, 1.613907],[1544832000000, 1.611234],[1544918400000, 1.611234],[1545004800000, 1.611234],[1545091200000, 1.612089],[1545177600000, 1.609085],[1545264000000, 1.600622],[1545350400000, 1.594315],[1545436800000, 1.586052],[1545523200000, 1.586052],[1545609600000, 1.586052],[1545696000000, 1.586052],[1545782400000, 1.586052],[1545868800000, 1.584885],[1545955200000, 1.601555],[1546041600000, 1.615164],[1546128000000, 1.615164],[1546214400000, 1.615164]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });