$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1388534400000,1.48012],[1388620800000,1.48012],[1388707200000,1.48012],[1388793600000,1.46109],[1388880000000,1.46109],[1388966400000,1.46109],[1389052800000,1.46109],[1389139200000,1.46109],[1389225600000,1.45643],[1389312000000,1.45828],[1389398400000,1.45537],[1389484800000,1.45537],[1389571200000,1.45537],[1389657600000,1.46256],[1389744000000,1.46395],[1389830400000,1.45742],[1389916800000,1.45646],[1390003200000,1.45503],[1390089600000,1.45503],[1390176000000,1.45503],[1390262400000,1.45308],[1390348800000,1.44883],[1390435200000,1.4531],[1390521600000,1.46092],[1390608000000,1.46608],[1390694400000,1.46608],[1390780800000,1.46608],[1390867200000,1.46299],[1390953600000,1.4621],[1391040000000,1.45754],[1391126400000,1.45395]], 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: [[1388534400000, 1.480118],[1388534400000, 1.480118],[1388620800000, 1.480118],[1388707200000, 1.480118],[1388793600000, 1.461086],[1388880000000, 1.461086],[1388966400000, 1.461086],[1389052800000, 1.461086],[1389139200000, 1.461086],[1389225600000, 1.456428],[1389312000000, 1.458279],[1389398400000, 1.455366],[1389484800000, 1.455366],[1389571200000, 1.455366],[1389657600000, 1.462563],[1389744000000, 1.463955],[1389830400000, 1.457421],[1389916800000, 1.456457],[1390003200000, 1.455025],[1390089600000, 1.455025],[1390176000000, 1.455025],[1390262400000, 1.453078],[1390348800000, 1.448832],[1390435200000, 1.453097],[1390521600000, 1.460917],[1390608000000, 1.466078],[1390694400000, 1.466078],[1390780800000, 1.466078],[1390867200000, 1.462991],[1390953600000, 1.462105],[1391040000000, 1.457538],[1391126400000, 1.453954]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });