$(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: [[1280620800000,1.09003],[1280707200000,1.09003],[1280793600000,1.10265],[1280880000000,1.11409],[1280966400000,1.11047],[1281052800000,1.10883],[1281139200000,1.10833],[1281225600000,null],[1281312000000,1.10833],[1281398400000,1.11312],[1281484800000,1.10199],[1281571200000,1.08341],[1281657600000,1.06471],[1281744000000,1.06276],[1281830400000,1.06276],[1281916800000,1.06276],[1282003200000,1.0655],[1282089600000,1.07564],[1282176000000,1.07591],[1282262400000,1.073],[1282348800000,1.05838],[1282435200000,null],[1282521600000,null],[1282608000000,1.05835],[1282694400000,1.05835],[1282780800000,1.05075],[1282867200000,1.06205],[1282953600000,1.06958],[1283040000000,1.06958],[1283126400000,1.06958],[1283212800000,1.06692]], 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: [[1280620800000, 1.090033],[1280620800000, 1.090033],[1280707200000, 1.090033],[1280793600000, 1.102648],[1280880000000, 1.114093],[1280966400000, 1.110470],[1281052800000, 1.108829],[1281139200000, 1.108329],[1281312000000, 1.108329],[1281398400000, 1.113117],[1281484800000, 1.101994],[1281571200000, 1.083408],[1281657600000, 1.064709],[1281744000000, 1.062756],[1281830400000, 1.062756],[1281916800000, 1.062756],[1282003200000, 1.065495],[1282089600000, 1.075643],[1282176000000, 1.075913],[1282262400000, 1.073005],[1282348800000, 1.058385],[1282608000000, 1.058345],[1282694400000, 1.058345],[1282780800000, 1.050750],[1282867200000, 1.062046],[1282953600000, 1.069576],[1283040000000, 1.069576],[1283126400000, 1.069576],[1283212800000, 1.066915]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });