$(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: [[1451606400000,3.51399],[1451692800000,3.51399],[1451779200000,3.51399],[1451865600000,3.51399],[1451952000000,3.51399],[1452038400000,3.42577],[1452124800000,3.38413],[1452211200000,3.38413],[1452297600000,3.38413],[1452384000000,3.38413],[1452470400000,3.38413],[1452556800000,3.43037],[1452643200000,3.37906],[1452729600000,3.42712],[1452816000000,3.49614],[1452902400000,3.53715],[1452988800000,3.56575],[1453075200000,3.56575],[1453161600000,3.59556],[1453248000000,3.61805],[1453334400000,3.60377],[1453420800000,3.57919],[1453507200000,3.59086],[1453593600000,3.59086],[1453680000000,3.59086],[1453766400000,3.5985],[1453852800000,3.6087],[1453939200000,3.62867],[1454025600000,3.67472],[1454112000000,3.73936],[1454198400000,3.73936]], 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: [[1451606400000, 3.513987],[1451606400000, 3.513987],[1451692800000, 3.513987],[1451779200000, 3.513987],[1451865600000, 3.513987],[1451952000000, 3.513987],[1452038400000, 3.425770],[1452124800000, 3.384126],[1452211200000, 3.384126],[1452297600000, 3.384126],[1452384000000, 3.384126],[1452470400000, 3.384126],[1452556800000, 3.430365],[1452643200000, 3.379062],[1452729600000, 3.427124],[1452816000000, 3.496138],[1452902400000, 3.537153],[1452988800000, 3.565752],[1453075200000, 3.565752],[1453161600000, 3.595561],[1453248000000, 3.618048],[1453334400000, 3.603767],[1453420800000, 3.579194],[1453507200000, 3.590862],[1453593600000, 3.590862],[1453680000000, 3.590862],[1453766400000, 3.598500],[1453852800000, 3.608696],[1453939200000, 3.628673],[1454025600000, 3.674721],[1454112000000, 3.739359],[1454198400000, 3.739359]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });