$(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: [[1354320000000,1.39138],[1354406400000,1.39138],[1354492800000,1.39138],[1354579200000,1.39895],[1354665600000,1.40266],[1354752000000,1.39986],[1354838400000,1.40075],[1354924800000,1.38289],[1355011200000,1.38289],[1355097600000,1.38289],[1355184000000,1.38555],[1355270400000,1.39226],[1355356800000,1.39709],[1355443200000,1.40094],[1355529600000,1.40132],[1355616000000,1.40132],[1355702400000,1.40132],[1355788800000,1.40978],[1355875200000,1.4119],[1355961600000,1.42509],[1356048000000,1.41901],[1356134400000,1.41505],[1356220800000,1.41505],[1356307200000,1.41505],[1356393600000,1.41594],[1356480000000,1.41594],[1356566400000,1.41594],[1356652800000,1.42134],[1356739200000,1.41241],[1356825600000,1.41241],[1356912000000,1.41241]], 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: [[1354320000000, 1.391382],[1354320000000, 1.391382],[1354406400000, 1.391382],[1354492800000, 1.391382],[1354579200000, 1.398952],[1354665600000, 1.402664],[1354752000000, 1.399865],[1354838400000, 1.400747],[1354924800000, 1.382889],[1355011200000, 1.382889],[1355097600000, 1.382889],[1355184000000, 1.385549],[1355270400000, 1.392263],[1355356800000, 1.397093],[1355443200000, 1.400944],[1355529600000, 1.401317],[1355616000000, 1.401317],[1355702400000, 1.401317],[1355788800000, 1.409780],[1355875200000, 1.411897],[1355961600000, 1.425087],[1356048000000, 1.419011],[1356134400000, 1.415048],[1356220800000, 1.415048],[1356307200000, 1.415048],[1356393600000, 1.415936],[1356480000000, 1.415936],[1356566400000, 1.415936],[1356652800000, 1.421344],[1356739200000, 1.412414],[1356825600000, 1.412414],[1356912000000, 1.412414]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });