$(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: [[1362096000000,1.24226],[1362182400000,1.24204],[1362268800000,1.24204],[1362355200000,1.24204],[1362441600000,1.24062],[1362528000000,1.24941],[1362614400000,1.25289],[1362700800000,1.25378],[1362787200000,1.25378],[1362873600000,1.25378],[1362960000000,1.25378],[1363046400000,1.24743],[1363132800000,1.25427],[1363219200000,1.25113],[1363305600000,1.23419],[1363392000000,1.25243],[1363478400000,1.25243],[1363564800000,1.25243],[1363651200000,1.23955],[1363737600000,1.24023],[1363824000000,1.24103],[1363910400000,1.23353],[1363996800000,1.22867],[1364083200000,1.22867],[1364169600000,1.22867],[1364256000000,1.22556],[1364342400000,1.23022],[1364428800000,1.22928],[1364515200000,1.22497],[1364601600000,1.22497],[1364688000000,1.22497]], 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: [[1362096000000, 1.242262],[1362096000000, 1.242262],[1362182400000, 1.242039],[1362268800000, 1.242039],[1362355200000, 1.242039],[1362441600000, 1.240617],[1362528000000, 1.249410],[1362614400000, 1.252886],[1362700800000, 1.253785],[1362787200000, 1.253785],[1362873600000, 1.253785],[1362960000000, 1.253785],[1363046400000, 1.247430],[1363132800000, 1.254269],[1363219200000, 1.251126],[1363305600000, 1.234191],[1363392000000, 1.252426],[1363478400000, 1.252426],[1363564800000, 1.252426],[1363651200000, 1.239553],[1363737600000, 1.240232],[1363824000000, 1.241027],[1363910400000, 1.233529],[1363996800000, 1.228670],[1364083200000, 1.228670],[1364169600000, 1.228670],[1364256000000, 1.225560],[1364342400000, 1.230215],[1364428800000, 1.229278],[1364515200000, 1.224975],[1364601600000, 1.224975],[1364688000000, 1.224975]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });