$(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: [[1012521600000,4.59309],[1012608000000,4.59309],[1012694400000,4.59309],[1012780800000,4.59309],[1012867200000,4.62005],[1012953600000,4.62005],[1013040000000,4.60977],[1013126400000,4.6502],[1013212800000,4.6502],[1013299200000,4.6502],[1013385600000,4.6502],[1013472000000,4.67894],[1013558400000,4.65712],[1013644800000,4.64542],[1013731200000,4.6252],[1013817600000,null],[1013904000000,null],[1013990400000,null],[1014076800000,null],[1014163200000,4.65268],[1014249600000,4.65268],[1014336000000,4.6548],[1014422400000,4.6548],[1014508800000,4.6548],[1014595200000,4.6548],[1014681600000,4.64291],[1014768000000,4.62039],[1014854400000,4.62039]], 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: [[1012521600000, 4.593090],[1012521600000, 4.593090],[1012608000000, 4.593090],[1012694400000, 4.593090],[1012780800000, 4.593090],[1012867200000, 4.620050],[1012953600000, 4.620050],[1013040000000, 4.609770],[1013126400000, 4.650200],[1013212800000, 4.650200],[1013299200000, 4.650200],[1013385600000, 4.650200],[1013472000000, 4.678940],[1013558400000, 4.657120],[1013644800000, 4.645420],[1013731200000, 4.625200],[1014163200000, 4.652680],[1014249600000, 4.652680],[1014336000000, 4.654800],[1014422400000, 4.654800],[1014508800000, 4.654800],[1014595200000, 4.654800],[1014681600000, 4.642910],[1014768000000, 4.620390],[1014854400000, 4.620390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });