$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1280620800000,9.82168],[1280707200000,9.82168],[1280793600000,9.8235],[1280880000000,9.82275],[1280966400000,9.82335],[1281052800000,9.82188],[1281139200000,9.82101],[1281225600000,null],[1281312000000,9.82101],[1281398400000,9.82076],[1281484800000,9.81954],[1281571200000,9.81954],[1281657600000,9.8171],[1281744000000,9.8171],[1281830400000,9.8171],[1281916800000,9.8171],[1282003200000,9.81699],[1282089600000,9.81588],[1282176000000,9.81588],[1282262400000,9.81625],[1282348800000,9.81625],[1282435200000,null],[1282521600000,null],[1282608000000,9.81588],[1282694400000,9.81588],[1282780800000,9.81588],[1282867200000,9.8171],[1282953600000,9.81336],[1283040000000,9.81336],[1283126400000,9.81336],[1283212800000,9.81346]], 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, 9.821677],[1280620800000, 9.821677],[1280707200000, 9.821677],[1280793600000, 9.823500],[1280880000000, 9.822753],[1280966400000, 9.823354],[1281052800000, 9.821882],[1281139200000, 9.821011],[1281312000000, 9.821011],[1281398400000, 9.820762],[1281484800000, 9.819540],[1281571200000, 9.819540],[1281657600000, 9.817096],[1281744000000, 9.817096],[1281830400000, 9.817096],[1281916800000, 9.817096],[1282003200000, 9.816994],[1282089600000, 9.815875],[1282176000000, 9.815875],[1282262400000, 9.816248],[1282348800000, 9.816248],[1282608000000, 9.815875],[1282694400000, 9.815875],[1282780800000, 9.815875],[1282867200000, 9.817096],[1282953600000, 9.813363],[1283040000000, 9.813363],[1283126400000, 9.813363],[1283212800000, 9.813464]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });