$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1498867200000,19.9972],[1498953600000,19.9972],[1499040000000,19.9972],[1499126400000,19.9038],[1499212800000,19.7946],[1499299200000,19.8381],[1499385600000,19.7692],[1499472000000,19.7904],[1499558400000,19.7904],[1499644800000,19.7904],[1499731200000,19.742],[1499817600000,19.7632],[1499904000000,19.8217],[1499990400000,20.0734],[1500076800000,20.1898],[1500163200000,20.1898],[1500249600000,20.1898],[1500336000000,20.3326],[1500422400000,20.5714],[1500508800000,20.59],[1500595200000,20.5229],[1500681600000,20.5054],[1500768000000,20.5054],[1500854400000,20.5054],[1500940800000,20.5158],[1501027200000,20.5687],[1501113600000,20.4799],[1501200000000,20.7211],[1501286400000,20.6329],[1501372800000,20.6329],[1501459200000,20.6329]], 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, 19.997217],[1498867200000, 19.997217],[1498953600000, 19.997217],[1499040000000, 19.997217],[1499126400000, 19.903779],[1499212800000, 19.794608],[1499299200000, 19.838143],[1499385600000, 19.769230],[1499472000000, 19.790357],[1499558400000, 19.790357],[1499644800000, 19.790357],[1499731200000, 19.741952],[1499817600000, 19.763196],[1499904000000, 19.821682],[1499990400000, 20.073386],[1500076800000, 20.189773],[1500163200000, 20.189773],[1500249600000, 20.189773],[1500336000000, 20.332633],[1500422400000, 20.571436],[1500508800000, 20.589983],[1500595200000, 20.522874],[1500681600000, 20.505357],[1500768000000, 20.505357],[1500854400000, 20.505357],[1500940800000, 20.515786],[1501027200000, 20.568738],[1501113600000, 20.479942],[1501200000000, 20.721057],[1501286400000, 20.632904],[1501372800000, 20.632904],[1501459200000, 20.632904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });