$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1280620800000,10.2826],[1280707200000,10.2826],[1280793600000,10.3175],[1280880000000,10.4335],[1280966400000,10.421],[1281052800000,10.4034],[1281139200000,10.3961],[1281225600000,null],[1281312000000,10.3961],[1281398400000,10.4566],[1281484800000,10.3619],[1281571200000,10.2696],[1281657600000,10.0913],[1281744000000,10.0984],[1281830400000,10.0984],[1281916800000,10.0984],[1282003200000,10.1161],[1282089600000,10.1465],[1282176000000,10.1623],[1282262400000,10.128],[1282348800000,10.0294],[1282435200000,null],[1282521600000,null],[1282608000000,10.029],[1282694400000,10.029],[1282780800000,9.95166],[1282867200000,10.0148],[1282953600000,10.0267],[1283040000000,10.0267],[1283126400000,10.0267],[1283212800000,10.0153]], 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, 10.282610],[1280620800000, 10.282610],[1280707200000, 10.282610],[1280793600000, 10.317473],[1280880000000, 10.433484],[1280966400000, 10.420987],[1281052800000, 10.403363],[1281139200000, 10.396128],[1281312000000, 10.396128],[1281398400000, 10.456617],[1281484800000, 10.361937],[1281571200000, 10.269624],[1281657600000, 10.091310],[1281744000000, 10.098411],[1281830400000, 10.098411],[1281916800000, 10.098411],[1282003200000, 10.116134],[1282089600000, 10.146540],[1282176000000, 10.162320],[1282262400000, 10.127989],[1282348800000, 10.029360],[1282608000000, 10.028979],[1282694400000, 10.028979],[1282780800000, 9.951657],[1282867200000, 10.014777],[1282953600000, 10.026743],[1283040000000, 10.026743],[1283126400000, 10.026743],[1283212800000, 10.015347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });