$(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: [[1388534400000,1.22977],[1388620800000,1.22977],[1388707200000,1.22977],[1388793600000,1.23053],[1388880000000,1.23053],[1388966400000,1.23053],[1389052800000,1.23053],[1389139200000,1.23053],[1389225600000,1.22136],[1389312000000,1.21892],[1389398400000,1.22271],[1389484800000,1.22271],[1389571200000,1.22271],[1389657600000,1.23022],[1389744000000,1.23858],[1389830400000,1.23646],[1389916800000,1.23257],[1390003200000,1.23471],[1390089600000,1.23471],[1390176000000,1.23471],[1390262400000,1.23458],[1390348800000,1.22757],[1390435200000,1.23278],[1390521600000,1.24361],[1390608000000,1.24041],[1390694400000,1.24041],[1390780800000,1.24041],[1390867200000,1.23975],[1390953600000,1.23751],[1391040000000,1.23594],[1391126400000,1.22808]], 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: [[1388534400000, 1.229774],[1388534400000, 1.229774],[1388620800000, 1.229774],[1388707200000, 1.229774],[1388793600000, 1.230525],[1388880000000, 1.230525],[1388966400000, 1.230525],[1389052800000, 1.230525],[1389139200000, 1.230525],[1389225600000, 1.221357],[1389312000000, 1.218919],[1389398400000, 1.222708],[1389484800000, 1.222708],[1389571200000, 1.222708],[1389657600000, 1.230219],[1389744000000, 1.238581],[1389830400000, 1.236459],[1389916800000, 1.232572],[1390003200000, 1.234712],[1390089600000, 1.234712],[1390176000000, 1.234712],[1390262400000, 1.234579],[1390348800000, 1.227570],[1390435200000, 1.232782],[1390521600000, 1.243615],[1390608000000, 1.240407],[1390694400000, 1.240407],[1390780800000, 1.240407],[1390867200000, 1.239747],[1390953600000, 1.237511],[1391040000000, 1.235938],[1391126400000, 1.228078]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });