$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1354320000000,1.19823],[1354406400000,1.19823],[1354492800000,1.19823],[1354579200000,1.20572],[1354665600000,1.21306],[1354752000000,1.20713],[1354838400000,1.2108],[1354924800000,1.19691],[1355011200000,1.19691],[1355097600000,1.19691],[1355184000000,1.19706],[1355270400000,1.20132],[1355356800000,1.2081],[1355443200000,1.19847],[1355529600000,1.19162],[1355616000000,1.19162],[1355702400000,1.19162],[1355788800000,1.2016],[1355875200000,1.20547],[1355961600000,1.22687],[1356048000000,1.22613],[1356134400000,1.22846],[1356220800000,1.22846],[1356307200000,1.22846],[1356393600000,1.22391],[1356480000000,1.22391],[1356566400000,1.22391],[1356652800000,1.22907],[1356739200000,1.23076],[1356825600000,1.23076],[1356912000000,1.23076]], 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.198235],[1354320000000, 1.198235],[1354406400000, 1.198235],[1354492800000, 1.198235],[1354579200000, 1.205719],[1354665600000, 1.213057],[1354752000000, 1.207127],[1354838400000, 1.210797],[1354924800000, 1.196910],[1355011200000, 1.196910],[1355097600000, 1.196910],[1355184000000, 1.197061],[1355270400000, 1.201322],[1355356800000, 1.208099],[1355443200000, 1.198469],[1355529600000, 1.191621],[1355616000000, 1.191621],[1355702400000, 1.191621],[1355788800000, 1.201598],[1355875200000, 1.205472],[1355961600000, 1.226869],[1356048000000, 1.226132],[1356134400000, 1.228455],[1356220800000, 1.228455],[1356307200000, 1.228455],[1356393600000, 1.223909],[1356480000000, 1.223909],[1356566400000, 1.223909],[1356652800000, 1.229065],[1356739200000, 1.230762],[1356825600000, 1.230762],[1356912000000, 1.230762]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });