$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1543622400000,0.099061],[1543708800000,0.099061],[1543795200000,0.099061],[1543881600000,0.098914],[1543968000000,0.099285],[1544054400000,0.09819],[1544140800000,0.097749],[1544227200000,0.097802],[1544313600000,0.097802],[1544400000000,0.097802],[1544486400000,0.098205],[1544572800000,0.09751],[1544659200000,0.097552],[1544745600000,0.098061],[1544832000000,0.096978],[1544918400000,0.096978],[1545004800000,0.096978],[1545091200000,0.097815],[1545177600000,0.098055],[1545264000000,0.097898],[1545350400000,0.098121],[1545436800000,0.097255],[1545523200000,0.097255],[1545609600000,0.097255],[1545696000000,0.097255],[1545782400000,0.097255],[1545868800000,0.096907],[1545955200000,0.097138],[1546041600000,0.098611],[1546128000000,0.098611],[1546214400000,0.098611]], 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, 0.099061],[1543622400000, 0.099061],[1543708800000, 0.099061],[1543795200000, 0.099061],[1543881600000, 0.098914],[1543968000000, 0.099285],[1544054400000, 0.098190],[1544140800000, 0.097749],[1544227200000, 0.097802],[1544313600000, 0.097802],[1544400000000, 0.097802],[1544486400000, 0.098205],[1544572800000, 0.097510],[1544659200000, 0.097552],[1544745600000, 0.098061],[1544832000000, 0.096978],[1544918400000, 0.096978],[1545004800000, 0.096978],[1545091200000, 0.097815],[1545177600000, 0.098055],[1545264000000, 0.097898],[1545350400000, 0.098121],[1545436800000, 0.097255],[1545523200000, 0.097255],[1545609600000, 0.097255],[1545696000000, 0.097255],[1545782400000, 0.097255],[1545868800000, 0.096907],[1545955200000, 0.097138],[1546041600000, 0.098611],[1546128000000, 0.098611],[1546214400000, 0.098611]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });