$(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: [[1504224000000,36.3156],[1504310400000,36.495],[1504396800000,36.495],[1504483200000,36.495],[1504569600000,36.7188],[1504656000000,36.8025],[1504742400000,36.918],[1504828800000,37.0362],[1504915200000,37.302],[1505001600000,37.302],[1505088000000,37.302],[1505174400000,37.0884],[1505260800000,37.0028],[1505347200000,37.1361],[1505433600000,37.1347],[1505520000000,37.3384],[1505606400000,37.3384],[1505692800000,37.3384],[1505779200000,37.2588],[1505865600000,37.1854],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,37.4406],[1506729600000,37.5633]], 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: [[1504224000000, 36.315572],[1504224000000, 36.315572],[1504310400000, 36.495043],[1504396800000, 36.495043],[1504483200000, 36.495043],[1504569600000, 36.718796],[1504656000000, 36.802499],[1504742400000, 36.918037],[1504828800000, 37.036243],[1504915200000, 37.301979],[1505001600000, 37.301979],[1505088000000, 37.301979],[1505174400000, 37.088425],[1505260800000, 37.002793],[1505347200000, 37.136100],[1505433600000, 37.134736],[1505520000000, 37.338432],[1505606400000, 37.338432],[1505692800000, 37.338432],[1505779200000, 37.258801],[1505865600000, 37.185363],[1506643200000, 37.440558],[1506729600000, 37.563275]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });