$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1543622400000,39.0384],[1543708800000,39.0384],[1543795200000,39.0384],[1543881600000,38.9488],[1543968000000,39.0254],[1544054400000,38.75],[1544140800000,38.5733],[1544227200000,38.5522],[1544313600000,38.5522],[1544400000000,38.5522],[1544486400000,38.4836],[1544572800000,38.3588],[1544659200000,38.4107],[1544745600000,38.5714],[1544832000000,38.3871],[1544918400000,38.3871],[1545004800000,38.3871],[1545091200000,38.5578],[1545177600000,38.5926],[1545264000000,38.4068],[1545350400000,38.3091],[1545436800000,38.061],[1545523200000,38.061],[1545609600000,38.061],[1545696000000,38.061],[1545782400000,38.061],[1545868800000,37.8305],[1545955200000,38.0705],[1546041600000,38.5086],[1546128000000,38.5086],[1546214400000,38.5086]], 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, 39.038443],[1543622400000, 39.038443],[1543708800000, 39.038443],[1543795200000, 39.038443],[1543881600000, 38.948827],[1543968000000, 39.025411],[1544054400000, 38.750022],[1544140800000, 38.573277],[1544227200000, 38.552207],[1544313600000, 38.552207],[1544400000000, 38.552207],[1544486400000, 38.483622],[1544572800000, 38.358755],[1544659200000, 38.410671],[1544745600000, 38.571425],[1544832000000, 38.387136],[1544918400000, 38.387136],[1545004800000, 38.387136],[1545091200000, 38.557802],[1545177600000, 38.592634],[1545264000000, 38.406759],[1545350400000, 38.309089],[1545436800000, 38.061030],[1545523200000, 38.061030],[1545609600000, 38.061030],[1545696000000, 38.061030],[1545782400000, 38.061030],[1545868800000, 37.830524],[1545955200000, 38.070527],[1546041600000, 38.508604],[1546128000000, 38.508604],[1546214400000, 38.508604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });