$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1280620800000,2.76937],[1280707200000,2.76937],[1280793600000,2.76919],[1280880000000,2.76898],[1280966400000,2.76881],[1281052800000,2.76874],[1281139200000,2.76849],[1281225600000,null],[1281312000000,2.76849],[1281398400000,2.76842],[1281484800000,2.76842],[1281571200000,2.76842],[1281657600000,2.76842],[1281744000000,2.76842],[1281830400000,2.76842],[1281916800000,2.76842],[1282003200000,2.76874],[1282089600000,2.76842],[1282176000000,2.76842],[1282262400000,2.76853],[1282348800000,2.76853],[1282435200000,null],[1282521600000,null],[1282608000000,2.76842],[1282694400000,2.76842],[1282780800000,2.76842],[1282867200000,2.76842],[1282953600000,2.76737],[1283040000000,2.76737],[1283126400000,2.76737],[1283212800000,2.76705]], 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, 2.769368],[1280620800000, 2.769368],[1280707200000, 2.769368],[1280793600000, 2.769193],[1280880000000, 2.768982],[1280966400000, 2.768807],[1281052800000, 2.768737],[1281139200000, 2.768491],[1281312000000, 2.768491],[1281398400000, 2.768421],[1281484800000, 2.768421],[1281571200000, 2.768421],[1281657600000, 2.768421],[1281744000000, 2.768421],[1281830400000, 2.768421],[1281916800000, 2.768421],[1282003200000, 2.768737],[1282089600000, 2.768421],[1282176000000, 2.768421],[1282262400000, 2.768526],[1282348800000, 2.768526],[1282608000000, 2.768421],[1282694400000, 2.768421],[1282780800000, 2.768421],[1282867200000, 2.768421],[1282953600000, 2.767368],[1283040000000, 2.767368],[1283126400000, 2.767368],[1283212800000, 2.767053]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });