$(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: [[1430438400000,29.7209],[1430524800000,29.7209],[1430611200000,29.7209],[1430697600000,29.7209],[1430784000000,29.7209],[1430870400000,29.5669],[1430956800000,29.5416],[1431043200000,29.2276],[1431129600000,28.9562],[1431216000000,28.9562],[1431302400000,28.9562],[1431388800000,28.9562],[1431475200000,29.1171],[1431561600000,29.003],[1431648000000,29.2187],[1431734400000,29.3083],[1431820800000,29.3083],[1431907200000,29.3083],[1431993600000,31.3672],[1432080000000,29.9119],[1432166400000,29.1693],[1432252800000,29.0832],[1432339200000,29.3159],[1432425600000,29.3159],[1432512000000,29.3159],[1432598400000,29.7335],[1432684800000,29.8032],[1432771200000,null],[1432857600000,29.2488],[1432944000000,29.3186],[1433030400000,29.3186]], 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: [[1430438400000, 29.720946],[1430438400000, 29.720946],[1430524800000, 29.720946],[1430611200000, 29.720946],[1430697600000, 29.720946],[1430784000000, 29.720946],[1430870400000, 29.566940],[1430956800000, 29.541611],[1431043200000, 29.227564],[1431129600000, 28.956208],[1431216000000, 28.956208],[1431302400000, 28.956208],[1431388800000, 28.956208],[1431475200000, 29.117059],[1431561600000, 29.003045],[1431648000000, 29.218716],[1431734400000, 29.308283],[1431820800000, 29.308283],[1431907200000, 29.308283],[1431993600000, 31.367226],[1432080000000, 29.911936],[1432166400000, 29.169282],[1432252800000, 29.083204],[1432339200000, 29.315928],[1432425600000, 29.315928],[1432512000000, 29.315928],[1432598400000, 29.733535],[1432684800000, 29.803211],[1432857600000, 29.248760],[1432944000000, 29.318568],[1433030400000, 29.318568]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });