$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1280620800000,0.036001],[1280707200000,0.036001],[1280793600000,0.0366322],[1280880000000,0.0370231],[1280966400000,0.0369683],[1281052800000,0.0371974],[1281139200000,0.0373089],[1281225600000,null],[1281312000000,0.0373089],[1281398400000,0.0374413],[1281484800000,0.0371329],[1281571200000,0.0364016],[1281657600000,0.0357303],[1281744000000,0.0359272],[1281830400000,0.0359272],[1281916800000,0.0359272],[1282003200000,0.0361033],[1282089600000,0.0363025],[1282176000000,0.0365065],[1282262400000,0.0365777],[1282348800000,0.0358961],[1282435200000,null],[1282521600000,null],[1282608000000,0.0358947],[1282694400000,0.0358947],[1282780800000,0.0349979],[1282867200000,0.0353093],[1282953600000,0.0352211],[1283040000000,0.0352211],[1283126400000,0.0352211],[1283212800000,0.0353287]], 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, 0.036001],[1280620800000, 0.036001],[1280707200000, 0.036001],[1280793600000, 0.036632],[1280880000000, 0.037023],[1280966400000, 0.036968],[1281052800000, 0.037197],[1281139200000, 0.037309],[1281312000000, 0.037309],[1281398400000, 0.037441],[1281484800000, 0.037133],[1281571200000, 0.036402],[1281657600000, 0.035730],[1281744000000, 0.035927],[1281830400000, 0.035927],[1281916800000, 0.035927],[1282003200000, 0.036103],[1282089600000, 0.036303],[1282176000000, 0.036506],[1282262400000, 0.036578],[1282348800000, 0.035896],[1282608000000, 0.035895],[1282694400000, 0.035895],[1282780800000, 0.034998],[1282867200000, 0.035309],[1282953600000, 0.035221],[1283040000000, 0.035221],[1283126400000, 0.035221],[1283212800000, 0.035329]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });