$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1498867200000,18.9038],[1498953600000,18.9038],[1499040000000,18.9038],[1499126400000,18.8129],[1499212800000,18.8125],[1499299200000,18.8812],[1499385600000,18.8391],[1499472000000,18.8423],[1499558400000,18.8423],[1499644800000,18.8423],[1499731200000,18.7613],[1499817600000,18.7677],[1499904000000,18.7576],[1499990400000,18.8579],[1500076800000,18.936],[1500163200000,18.936],[1500249600000,18.936],[1500336000000,18.9898],[1500422400000,18.9719],[1500508800000,18.97],[1500595200000,18.9215],[1500681600000,18.9899],[1500768000000,18.9899],[1500854400000,18.9899],[1500940800000,18.966],[1501027200000,19.0073],[1501113600000,19.016],[1501200000000,19.061],[1501286400000,19.0609],[1501372800000,19.0609],[1501459200000,19.0609]], 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, 18.903798],[1498867200000, 18.903798],[1498953600000, 18.903798],[1499040000000, 18.903798],[1499126400000, 18.812866],[1499212800000, 18.812505],[1499299200000, 18.881173],[1499385600000, 18.839076],[1499472000000, 18.842339],[1499558400000, 18.842339],[1499644800000, 18.842339],[1499731200000, 18.761296],[1499817600000, 18.767711],[1499904000000, 18.757591],[1499990400000, 18.857901],[1500076800000, 18.935957],[1500163200000, 18.935957],[1500249600000, 18.935957],[1500336000000, 18.989838],[1500422400000, 18.971884],[1500508800000, 18.969989],[1500595200000, 18.921521],[1500681600000, 18.989935],[1500768000000, 18.989935],[1500854400000, 18.989935],[1500940800000, 18.966009],[1501027200000, 19.007325],[1501113600000, 19.015982],[1501200000000, 19.061025],[1501286400000, 19.060886],[1501372800000, 19.060886],[1501459200000, 19.060886]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });