$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1498867200000,3.1028],[1498953600000,3.1028],[1499040000000,3.1028],[1499126400000,3.10873],[1499212800000,3.11413],[1499299200000,3.11594],[1499385600000,3.11336],[1499472000000,3.106],[1499558400000,3.106],[1499644800000,3.106],[1499731200000,3.11154],[1499817600000,3.11408],[1499904000000,3.13293],[1499990400000,3.1368],[1500076800000,3.16477],[1500163200000,3.16477],[1500249600000,3.16477],[1500336000000,3.18101],[1500422400000,3.2195],[1500508800000,3.21673],[1500595200000,3.20201],[1500681600000,3.23001],[1500768000000,3.23001],[1500854400000,3.23001],[1500940800000,3.21606],[1501027200000,3.24842],[1501113600000,3.24463],[1501200000000,3.25754],[1501286400000,3.26159],[1501372800000,3.26159],[1501459200000,3.26159]], 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, 3.102804],[1498867200000, 3.102804],[1498953600000, 3.102804],[1499040000000, 3.102804],[1499126400000, 3.108729],[1499212800000, 3.114129],[1499299200000, 3.115945],[1499385600000, 3.113356],[1499472000000, 3.106001],[1499558400000, 3.106001],[1499644800000, 3.106001],[1499731200000, 3.111538],[1499817600000, 3.114075],[1499904000000, 3.132934],[1499990400000, 3.136798],[1500076800000, 3.164770],[1500163200000, 3.164770],[1500249600000, 3.164770],[1500336000000, 3.181008],[1500422400000, 3.219502],[1500508800000, 3.216728],[1500595200000, 3.202010],[1500681600000, 3.230009],[1500768000000, 3.230009],[1500854400000, 3.230009],[1500940800000, 3.216059],[1501027200000, 3.248417],[1501113600000, 3.244629],[1501200000000, 3.257541],[1501286400000, 3.261591],[1501372800000, 3.261591],[1501459200000, 3.261591]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });