$(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: [[1099267200000,7.95327],[1099353600000,7.94915],[1099440000000,7.93935],[1099526400000,7.94023],[1099612800000,null],[1099699200000,null],[1099785600000,null],[1099872000000,null],[1099958400000,null],[1100044800000,8.01499],[1100131200000,8.01499],[1100217600000,7.97411],[1100304000000,7.97396],[1100390400000,7.97396],[1100476800000,7.97396],[1100563200000,8.01131],[1100649600000,8.01748],[1100736000000,8.04529],[1100822400000,8.04729],[1100908800000,8.04971],[1100995200000,8.04971],[1101081600000,8.04971],[1101168000000,8.05786],[1101254400000,8.07089],[1101340800000,8.09745],[1101427200000,8.09745],[1101513600000,8.09745],[1101600000000,8.09745],[1101686400000,8.09745],[1101772800000,8.12727]], 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: [[1099267200000, 7.953270],[1099267200000, 7.953270],[1099353600000, 7.949150],[1099440000000, 7.939350],[1099526400000, 7.940230],[1100044800000, 8.014990],[1100131200000, 8.014990],[1100217600000, 7.974110],[1100304000000, 7.973960],[1100390400000, 7.973960],[1100476800000, 7.973960],[1100563200000, 8.011305],[1100649600000, 8.017479],[1100736000000, 8.045292],[1100822400000, 8.047293],[1100908800000, 8.049710],[1100995200000, 8.049710],[1101081600000, 8.049710],[1101168000000, 8.057864],[1101254400000, 8.070892],[1101340800000, 8.097446],[1101427200000, 8.097446],[1101513600000, 8.097446],[1101600000000, 8.097446],[1101686400000, 8.097446],[1101772800000, 8.127275]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });