$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1354320000000,14.9091],[1354406400000,14.9091],[1354492800000,14.9091],[1354579200000,14.9885],[1354665600000,15.0265],[1354752000000,14.9933],[1354838400000,15.0057],[1354924800000,14.8118],[1355011200000,14.8118],[1355097600000,14.8118],[1355184000000,14.8427],[1355270400000,14.9193],[1355356800000,14.9732],[1355443200000,15.0136],[1355529600000,15.016],[1355616000000,15.016],[1355702400000,15.016],[1355788800000,15.1067],[1355875200000,15.1317],[1355961600000,15.2697],[1356048000000,15.2054],[1356134400000,15.1608],[1356220800000,15.1608],[1356307200000,15.1608],[1356393600000,15.1689],[1356480000000,15.1689],[1356566400000,15.1689],[1356652800000,15.2109],[1356739200000,15.1006],[1356825600000,15.1006],[1356912000000,15.1006]], 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, 14.909092],[1354320000000, 14.909092],[1354406400000, 14.909092],[1354492800000, 14.909092],[1354579200000, 14.988453],[1354665600000, 15.026473],[1354752000000, 14.993330],[1354838400000, 15.005672],[1354924800000, 14.811842],[1355011200000, 14.811842],[1355097600000, 14.811842],[1355184000000, 14.842667],[1355270400000, 14.919272],[1355356800000, 14.973239],[1355443200000, 15.013568],[1355529600000, 15.016004],[1355616000000, 15.016004],[1355702400000, 15.016004],[1355788800000, 15.106690],[1355875200000, 15.131699],[1355961600000, 15.269695],[1356048000000, 15.205411],[1356134400000, 15.160761],[1356220800000, 15.160761],[1356307200000, 15.160761],[1356393600000, 15.168912],[1356480000000, 15.168912],[1356566400000, 15.168912],[1356652800000, 15.210893],[1356739200000, 15.100562],[1356825600000, 15.100562],[1356912000000, 15.100562]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });