$(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: [[1356998400000,1.23076],[1357084800000,1.23076],[1357171200000,1.23076],[1357257600000,1.22631],[1357344000000,1.21914],[1357430400000,1.21914],[1357516800000,1.21914],[1357603200000,1.21914],[1357689600000,1.21956],[1357776000000,1.2141],[1357862400000,1.2235],[1357948800000,1.23016],[1358035200000,1.23016],[1358121600000,1.23016],[1358208000000,1.23738],[1358294400000,1.23379],[1358380800000,1.22911],[1358467200000,1.23626],[1358553600000,1.22918],[1358640000000,1.22918],[1358726400000,1.22918],[1358812800000,1.22493],[1358899200000,1.22476],[1358985600000,1.22596],[1359072000000,1.22813],[1359158400000,1.23903],[1359244800000,1.23903],[1359331200000,1.23903],[1359417600000,1.2411],[1359504000000,1.24689],[1359590400000,1.25682]], 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: [[1356998400000, 1.230762],[1356998400000, 1.230762],[1357084800000, 1.230762],[1357171200000, 1.230762],[1357257600000, 1.226308],[1357344000000, 1.219141],[1357430400000, 1.219141],[1357516800000, 1.219141],[1357603200000, 1.219141],[1357689600000, 1.219556],[1357776000000, 1.214098],[1357862400000, 1.223498],[1357948800000, 1.230163],[1358035200000, 1.230163],[1358121600000, 1.230163],[1358208000000, 1.237376],[1358294400000, 1.233787],[1358380800000, 1.229115],[1358467200000, 1.236265],[1358553600000, 1.229181],[1358640000000, 1.229181],[1358726400000, 1.229181],[1358812800000, 1.224933],[1358899200000, 1.224761],[1358985600000, 1.225957],[1359072000000, 1.228128],[1359158400000, 1.239026],[1359244800000, 1.239026],[1359331200000, 1.239026],[1359417600000, 1.241097],[1359504000000, 1.246893],[1359590400000, 1.256816]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });