$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1504224000000,20.296],[1504310400000,20.6959],[1504396800000,20.6959],[1504483200000,20.6959],[1504569600000,20.8755],[1504656000000,20.9473],[1504742400000,20.9639],[1504828800000,21.3398],[1504915200000,21.571],[1505001600000,21.571],[1505088000000,21.571],[1505174400000,21.4584],[1505260800000,21.4467],[1505347200000,21.4832],[1505433600000,21.4424],[1505520000000,21.6062],[1505606400000,21.6062],[1505692800000,21.6062],[1505779200000,21.453],[1505865600000,21.2577],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,21.2725],[1506729600000,21.3649]], 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, 20.295995],[1504224000000, 20.295995],[1504310400000, 20.695936],[1504396800000, 20.695936],[1504483200000, 20.695936],[1504569600000, 20.875450],[1504656000000, 20.947338],[1504742400000, 20.963940],[1504828800000, 21.339830],[1504915200000, 21.570964],[1505001600000, 21.570964],[1505088000000, 21.570964],[1505174400000, 21.458387],[1505260800000, 21.446724],[1505347200000, 21.483155],[1505433600000, 21.442353],[1505520000000, 21.606221],[1505606400000, 21.606221],[1505692800000, 21.606221],[1505779200000, 21.453038],[1505865600000, 21.257693],[1506643200000, 21.272504],[1506729600000, 21.364862]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });