$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1280620800000,11.9852],[1280707200000,11.9852],[1280793600000,12.0177],[1280880000000,12.1019],[1280966400000,12.0981],[1281052800000,12.0835],[1281139200000,12.0646],[1281225600000,null],[1281312000000,12.0646],[1281398400000,12.1097],[1281484800000,12.0523],[1281571200000,12.0186],[1281657600000,11.9471],[1281744000000,11.9301],[1281830400000,11.9301],[1281916800000,11.9301],[1282003200000,11.9345],[1282089600000,11.9626],[1282176000000,11.9681],[1282262400000,11.9491],[1282348800000,11.8985],[1282435200000,null],[1282521600000,null],[1282608000000,11.898],[1282694400000,11.898],[1282780800000,11.893],[1282867200000,11.9204],[1282953600000,11.9163],[1283040000000,11.9163],[1283126400000,11.9163],[1283212800000,11.9149]], 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, 11.985185],[1280620800000, 11.985185],[1280707200000, 11.985185],[1280793600000, 12.017676],[1280880000000, 12.101936],[1280966400000, 12.098108],[1281052800000, 12.083500],[1281139200000, 12.064618],[1281312000000, 12.064618],[1281398400000, 12.109659],[1281484800000, 12.052315],[1281571200000, 12.018608],[1281657600000, 11.947124],[1281744000000, 11.930125],[1281830400000, 11.930125],[1281916800000, 11.930125],[1282003200000, 11.934535],[1282089600000, 11.962629],[1282176000000, 11.968073],[1282262400000, 11.949080],[1282348800000, 11.898500],[1282608000000, 11.898048],[1282694400000, 11.898048],[1282780800000, 11.892990],[1282867200000, 11.920392],[1282953600000, 11.916309],[1283040000000, 11.916309],[1283126400000, 11.916309],[1283212800000, 11.914950]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });