$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1280620800000,7.10812],[1280707200000,7.10812],[1280793600000,7.19088],[1280880000000,7.19104],[1280966400000,7.20477],[1281052800000,7.21004],[1281139200000,7.24166],[1281225600000,null],[1281312000000,7.24166],[1281398400000,7.24996],[1281484800000,7.16197],[1281571200000,7.13119],[1281657600000,7.04651],[1281744000000,7.07172],[1281830400000,7.07172],[1281916800000,7.07172],[1282003200000,7.03535],[1282089600000,7.11988],[1282176000000,7.12096],[1282262400000,7.10337],[1282348800000,7.00668],[1282435200000,null],[1282521600000,null],[1282608000000,7.00641],[1282694400000,7.00641],[1282780800000,6.93544],[1282867200000,6.99454],[1282953600000,7.00094],[1283040000000,7.00094],[1283126400000,7.00094],[1283212800000,7.07249]], 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, 7.108122],[1280620800000, 7.108122],[1280707200000, 7.108122],[1280793600000, 7.190879],[1280880000000, 7.191043],[1280966400000, 7.204775],[1281052800000, 7.210037],[1281139200000, 7.241660],[1281312000000, 7.241660],[1281398400000, 7.249960],[1281484800000, 7.161969],[1281571200000, 7.131188],[1281657600000, 7.046512],[1281744000000, 7.071716],[1281830400000, 7.071716],[1281916800000, 7.071716],[1282003200000, 7.035353],[1282089600000, 7.119879],[1282176000000, 7.120959],[1282262400000, 7.103373],[1282348800000, 7.006679],[1282608000000, 7.006413],[1282694400000, 7.006413],[1282780800000, 6.935436],[1282867200000, 6.994536],[1282953600000, 7.000938],[1283040000000, 7.000938],[1283126400000, 7.000938],[1283212800000, 7.072486]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });