$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1504224000000,33.0348],[1504310400000,33.3338],[1504396800000,33.3338],[1504483200000,33.3338],[1504569600000,33.5762],[1504656000000,33.6381],[1504742400000,33.9058],[1504828800000,34.0562],[1504915200000,34.4524],[1505001600000,34.4524],[1505088000000,34.4524],[1505174400000,34.3736],[1505260800000,34.5451],[1505347200000,34.6185],[1505433600000,34.8884],[1505520000000,35.6329],[1505606400000,35.6329],[1505692800000,35.6329],[1505779200000,35.4443],[1505865600000,35.2944],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,35.6439],[1506729600000,35.5855]], 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, 33.034808],[1504224000000, 33.034808],[1504310400000, 33.333775],[1504396800000, 33.333775],[1504483200000, 33.333775],[1504569600000, 33.576168],[1504656000000, 33.638128],[1504742400000, 33.905782],[1504828800000, 34.056224],[1504915200000, 34.452376],[1505001600000, 34.452376],[1505088000000, 34.452376],[1505174400000, 34.373606],[1505260800000, 34.545075],[1505347200000, 34.618535],[1505433600000, 34.888363],[1505520000000, 35.632853],[1505606400000, 35.632853],[1505692800000, 35.632853],[1505779200000, 35.444319],[1505865600000, 35.294362],[1506643200000, 35.643915],[1506729600000, 35.585489]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });