$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1504224000000,1.44075],[1504310400000,1.44633],[1504396800000,1.44633],[1504483200000,1.44633],[1504569600000,1.45578],[1504656000000,1.46145],[1504742400000,1.46257],[1504828800000,1.46636],[1504915200000,1.4693],[1505001600000,1.4693],[1505088000000,1.4693],[1505174400000,1.46671],[1505260800000,1.4707],[1505347200000,1.47469],[1505433600000,1.48161],[1505520000000,1.48507],[1505606400000,1.48507],[1505692800000,1.48507],[1505779200000,1.48448],[1505865600000,1.48039],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,1.50588],[1506729600000,1.50915]], 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, 1.440753],[1504224000000, 1.440753],[1504310400000, 1.446327],[1504396800000, 1.446327],[1504483200000, 1.446327],[1504569600000, 1.455775],[1504656000000, 1.461455],[1504742400000, 1.462567],[1504828800000, 1.466364],[1504915200000, 1.469297],[1505001600000, 1.469297],[1505088000000, 1.469297],[1505174400000, 1.466709],[1505260800000, 1.470696],[1505347200000, 1.474693],[1505433600000, 1.481612],[1505520000000, 1.485069],[1505606400000, 1.485069],[1505692800000, 1.485069],[1505779200000, 1.484477],[1505865600000, 1.480394],[1506643200000, 1.505879],[1506729600000, 1.509147]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });