$(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: [[1354320000000,1.40723],[1354406400000,1.40723],[1354492800000,1.40723],[1354579200000,1.42012],[1354665600000,1.42441],[1354752000000,1.41964],[1354838400000,1.42427],[1354924800000,1.40713],[1355011200000,1.40713],[1355097600000,1.40713],[1355184000000,1.41091],[1355270400000,1.41537],[1355356800000,1.42204],[1355443200000,1.4255],[1355529600000,1.41839],[1355616000000,1.41839],[1355702400000,1.41839],[1355788800000,1.42715],[1355875200000,1.42629],[1355961600000,1.44157],[1356048000000,1.43764],[1356134400000,1.44323],[1356220800000,1.44323],[1356307200000,1.44323],[1356393600000,1.43363],[1356480000000,1.43363],[1356566400000,1.43363],[1356652800000,1.43757],[1356739200000,1.43607],[1356825600000,1.43607],[1356912000000,1.43607]], 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.407227],[1354320000000, 1.407227],[1354406400000, 1.407227],[1354492800000, 1.407227],[1354579200000, 1.420120],[1354665600000, 1.424411],[1354752000000, 1.419638],[1354838400000, 1.424271],[1354924800000, 1.407130],[1355011200000, 1.407130],[1355097600000, 1.407130],[1355184000000, 1.410915],[1355270400000, 1.415374],[1355356800000, 1.422044],[1355443200000, 1.425496],[1355529600000, 1.418387],[1355616000000, 1.418387],[1355702400000, 1.418387],[1355788800000, 1.427147],[1355875200000, 1.426293],[1355961600000, 1.441569],[1356048000000, 1.437644],[1356134400000, 1.443231],[1356220800000, 1.443231],[1356307200000, 1.443231],[1356393600000, 1.433632],[1356480000000, 1.433632],[1356566400000, 1.433632],[1356652800000, 1.437570],[1356739200000, 1.436071],[1356825600000, 1.436071],[1356912000000, 1.436071]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });