$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1280620800000,7.8927],[1280707200000,7.8927],[1280793600000,7.8922],[1280880000000,7.8916],[1280966400000,7.8911],[1281052800000,7.8909],[1281139200000,7.8902],[1281225600000,null],[1281312000000,7.8902],[1281398400000,7.89],[1281484800000,7.89],[1281571200000,7.89],[1281657600000,7.89],[1281744000000,7.89],[1281830400000,7.89],[1281916800000,7.89],[1282003200000,7.8909],[1282089600000,7.89],[1282176000000,7.89],[1282262400000,7.8903],[1282348800000,7.8903],[1282435200000,null],[1282521600000,null],[1282608000000,7.89],[1282694400000,7.89],[1282780800000,7.89],[1282867200000,7.89],[1282953600000,7.887],[1283040000000,7.887],[1283126400000,7.887],[1283212800000,7.8861]], 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.892700],[1280620800000, 7.892700],[1280707200000, 7.892700],[1280793600000, 7.892200],[1280880000000, 7.891600],[1280966400000, 7.891100],[1281052800000, 7.890900],[1281139200000, 7.890200],[1281312000000, 7.890200],[1281398400000, 7.890000],[1281484800000, 7.890000],[1281571200000, 7.890000],[1281657600000, 7.890000],[1281744000000, 7.890000],[1281830400000, 7.890000],[1281916800000, 7.890000],[1282003200000, 7.890900],[1282089600000, 7.890000],[1282176000000, 7.890000],[1282262400000, 7.890300],[1282348800000, 7.890300],[1282608000000, 7.890000],[1282694400000, 7.890000],[1282780800000, 7.890000],[1282867200000, 7.890000],[1282953600000, 7.887000],[1283040000000, 7.887000],[1283126400000, 7.887000],[1283212800000, 7.886100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });