$(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: [[1372636800000,1.18964],[1372723200000,1.19833],[1372809600000,1.19581],[1372896000000,1.18945],[1372982400000,1.19179],[1373068800000,1.1896],[1373155200000,1.1896],[1373241600000,1.1896],[1373328000000,1.16851],[1373414400000,1.17859],[1373500800000,1.18034],[1373587200000,1.19764],[1373673600000,1.19679],[1373760000000,1.19679],[1373846400000,1.19679],[1373932800000,1.19055],[1374019200000,1.20556],[1374105600000,1.21671],[1374192000000,1.21389],[1374278400000,1.22063],[1374364800000,1.22063],[1374451200000,null],[1374537600000,1.22972],[1374624000000,1.23178],[1374710400000,1.238],[1374796800000,1.22581],[1374883200000,1.23072],[1374969600000,1.23072],[1375056000000,1.23072],[1375142400000,1.23604],[1375228800000,1.22301]], 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: [[1372636800000, 1.189639],[1372636800000, 1.189639],[1372723200000, 1.198334],[1372809600000, 1.195808],[1372896000000, 1.189455],[1372982400000, 1.191790],[1373068800000, 1.189596],[1373155200000, 1.189596],[1373241600000, 1.189596],[1373328000000, 1.168514],[1373414400000, 1.178590],[1373500800000, 1.180337],[1373587200000, 1.197642],[1373673600000, 1.196792],[1373760000000, 1.196792],[1373846400000, 1.196792],[1373932800000, 1.190546],[1374019200000, 1.205558],[1374105600000, 1.216711],[1374192000000, 1.213895],[1374278400000, 1.220627],[1374364800000, 1.220627],[1374537600000, 1.229721],[1374624000000, 1.231777],[1374710400000, 1.238003],[1374796800000, 1.225807],[1374883200000, 1.230720],[1374969600000, 1.230720],[1375056000000, 1.230720],[1375142400000, 1.236041],[1375228800000, 1.223007]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });