$(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: [[1328054400000,1.18327],[1328140800000,1.18413],[1328227200000,1.18125],[1328313600000,1.18834],[1328400000000,1.18834],[1328486400000,1.18834],[1328572800000,1.18377],[1328659200000,1.18765],[1328745600000,1.20131],[1328832000000,1.20586],[1328918400000,1.1966],[1329004800000,1.1966],[1329091200000,1.1966],[1329177600000,1.20172],[1329264000000,1.19793],[1329350400000,1.19029],[1329436800000,1.17747],[1329523200000,1.19025],[1329609600000,1.19025],[1329696000000,1.19025],[1329782400000,1.20261],[1329868800000,1.19865],[1329955200000,1.1997],[1330041600000,1.20473],[1330128000000,1.21416],[1330214400000,1.21416],[1330300800000,1.21416],[1330387200000,1.21047],[1330473600000,1.21725]], 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: [[1328054400000, 1.183273],[1328054400000, 1.183273],[1328140800000, 1.184129],[1328227200000, 1.181247],[1328313600000, 1.188341],[1328400000000, 1.188341],[1328486400000, 1.188341],[1328572800000, 1.183774],[1328659200000, 1.187654],[1328745600000, 1.201313],[1328832000000, 1.205858],[1328918400000, 1.196602],[1329004800000, 1.196602],[1329091200000, 1.196602],[1329177600000, 1.201718],[1329264000000, 1.197933],[1329350400000, 1.190292],[1329436800000, 1.177468],[1329523200000, 1.190249],[1329609600000, 1.190249],[1329696000000, 1.190249],[1329782400000, 1.202612],[1329868800000, 1.198649],[1329955200000, 1.199697],[1330041600000, 1.204730],[1330128000000, 1.214157],[1330214400000, 1.214157],[1330300800000, 1.214157],[1330387200000, 1.210473],[1330473600000, 1.217254]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });