$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1504224000000,30.3831],[1504310400000,30.6921],[1504396800000,30.6921],[1504483200000,30.6921],[1504569600000,30.8414],[1504656000000,30.8596],[1504742400000,30.9994],[1504828800000,31.1284],[1504915200000,31.444],[1505001600000,31.444],[1505088000000,31.444],[1505174400000,31.2026],[1505260800000,31.0484],[1505347200000,31.2408],[1505433600000,31.0936],[1505520000000,31.3722],[1505606400000,31.3722],[1505692800000,31.3722],[1505779200000,31.2807],[1505865600000,31.2786],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,31.2365],[1506729600000,31.3786]], 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, 30.383104],[1504224000000, 30.383104],[1504310400000, 30.692074],[1504396800000, 30.692074],[1504483200000, 30.692074],[1504569600000, 30.841389],[1504656000000, 30.859619],[1504742400000, 30.999378],[1504828800000, 31.128410],[1504915200000, 31.443995],[1505001600000, 31.443995],[1505088000000, 31.443995],[1505174400000, 31.202641],[1505260800000, 31.048423],[1505347200000, 31.240804],[1505433600000, 31.093556],[1505520000000, 31.372233],[1505606400000, 31.372233],[1505692800000, 31.372233],[1505779200000, 31.280675],[1505865600000, 31.278569],[1506643200000, 31.236545],[1506729600000, 31.378572]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });