$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1012521600000,5.321],[1012608000000,5.321],[1012694400000,5.321],[1012780800000,5.321],[1012867200000,5.3208],[1012953600000,5.3208],[1013040000000,5.3206],[1013126400000,5.3206],[1013212800000,5.3206],[1013299200000,5.3206],[1013385600000,5.3206],[1013472000000,5.3206],[1013558400000,5.3206],[1013644800000,5.3206],[1013731200000,5.3206],[1013817600000,null],[1013904000000,null],[1013990400000,null],[1014076800000,null],[1014163200000,5.3216],[1014249600000,5.3216],[1014336000000,5.3216],[1014422400000,5.3216],[1014508800000,5.3216],[1014595200000,5.3216],[1014681600000,5.322],[1014768000000,5.3218],[1014854400000,5.3218]], 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, 5.321000],[1012521600000, 5.321000],[1012608000000, 5.321000],[1012694400000, 5.321000],[1012780800000, 5.321000],[1012867200000, 5.320800],[1012953600000, 5.320800],[1013040000000, 5.320600],[1013126400000, 5.320600],[1013212800000, 5.320600],[1013299200000, 5.320600],[1013385600000, 5.320600],[1013472000000, 5.320600],[1013558400000, 5.320600],[1013644800000, 5.320600],[1013731200000, 5.320600],[1014163200000, 5.321600],[1014249600000, 5.321600],[1014336000000, 5.321600],[1014422400000, 5.321600],[1014508800000, 5.321600],[1014595200000, 5.321600],[1014681600000, 5.322000],[1014768000000, 5.321800],[1014854400000, 5.321800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });