$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1543622400000,4.0633],[1543708800000,4.0633],[1543795200000,4.0633],[1543881600000,4.08911],[1543968000000,4.1147],[1544054400000,4.0802],[1544140800000,4.0448],[1544227200000,4.04363],[1544313600000,4.04363],[1544400000000,4.04363],[1544486400000,4.01877],[1544572800000,4.01728],[1544659200000,4.03699],[1544745600000,4.04974],[1544832000000,4.03367],[1544918400000,4.03367],[1545004800000,4.03367],[1545091200000,4.04306],[1545177600000,4.03832],[1545264000000,4.01754],[1545350400000,4.00414],[1545436800000,3.97248],[1545523200000,3.97248],[1545609600000,3.97248],[1545696000000,3.97248],[1545782400000,3.97248],[1545868800000,3.95111],[1545955200000,3.99897],[1546041600000,4.02576],[1546128000000,4.02576],[1546214400000,4.02576]], 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.063302],[1543622400000, 4.063302],[1543708800000, 4.063302],[1543795200000, 4.063302],[1543881600000, 4.089114],[1543968000000, 4.114696],[1544054400000, 4.080202],[1544140800000, 4.044798],[1544227200000, 4.043626],[1544313600000, 4.043626],[1544400000000, 4.043626],[1544486400000, 4.018770],[1544572800000, 4.017276],[1544659200000, 4.036992],[1544745600000, 4.049737],[1544832000000, 4.033666],[1544918400000, 4.033666],[1545004800000, 4.033666],[1545091200000, 4.043058],[1545177600000, 4.038316],[1545264000000, 4.017544],[1545350400000, 4.004144],[1545436800000, 3.972482],[1545523200000, 3.972482],[1545609600000, 3.972482],[1545696000000, 3.972482],[1545782400000, 3.972482],[1545868800000, 3.951110],[1545955200000, 3.998967],[1546041600000, 4.025761],[1546128000000, 4.025761],[1546214400000, 4.025761]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });