$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1498867200000,20.0865],[1498953600000,20.0865],[1499040000000,20.0865],[1499126400000,20.0292],[1499212800000,20.0526],[1499299200000,20.1543],[1499385600000,20.1451],[1499472000000,20.0577],[1499558400000,20.0577],[1499644800000,20.0577],[1499731200000,20.1394],[1499817600000,20.1258],[1499904000000,20.0332],[1499990400000,20.3573],[1500076800000,20.4483],[1500163200000,20.4483],[1500249600000,20.4483],[1500336000000,20.5219],[1500422400000,20.5955],[1500508800000,20.5787],[1500595200000,20.5555],[1500681600000,20.5543],[1500768000000,20.5543],[1500854400000,20.5543],[1500940800000,20.6241],[1501027200000,20.6884],[1501113600000,20.6781],[1501200000000,20.7409],[1501286400000,20.661],[1501372800000,20.661],[1501459200000,20.661]], 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: [[1498867200000, 20.086484],[1498867200000, 20.086484],[1498953600000, 20.086484],[1499040000000, 20.086484],[1499126400000, 20.029232],[1499212800000, 20.052624],[1499299200000, 20.154321],[1499385600000, 20.145071],[1499472000000, 20.057686],[1499558400000, 20.057686],[1499644800000, 20.057686],[1499731200000, 20.139396],[1499817600000, 20.125750],[1499904000000, 20.033178],[1499990400000, 20.357314],[1500076800000, 20.448331],[1500163200000, 20.448331],[1500249600000, 20.448331],[1500336000000, 20.521910],[1500422400000, 20.595475],[1500508800000, 20.578655],[1500595200000, 20.555457],[1500681600000, 20.554300],[1500768000000, 20.554300],[1500854400000, 20.554300],[1500940800000, 20.624104],[1501027200000, 20.688422],[1501113600000, 20.678054],[1501200000000, 20.740922],[1501286400000, 20.660953],[1501372800000, 20.660953],[1501459200000, 20.660953]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });