$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1280620800000,0.0913036],[1280707200000,0.0913036],[1280793600000,0.0910874],[1280880000000,0.0919169],[1280966400000,0.0922865],[1281052800000,0.0915306],[1281139200000,0.0918873],[1281225600000,null],[1281312000000,0.0918873],[1281398400000,0.092145],[1281484800000,0.0915123],[1281571200000,0.0928873],[1281657600000,0.0921581],[1281744000000,0.0919877],[1281830400000,0.0919877],[1281916800000,0.0919877],[1282003200000,0.0923932],[1282089600000,0.0925273],[1282176000000,0.0924436],[1282262400000,0.0922235],[1282348800000,0.0924024],[1282435200000,null],[1282521600000,null],[1282608000000,0.0923989],[1282694400000,0.0923989],[1282780800000,0.0934516],[1282867200000,0.093465],[1282953600000,0.0930643],[1283040000000,0.0930643],[1283126400000,0.0930643],[1283212800000,0.0931314]], 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, 0.091304],[1280620800000, 0.091304],[1280707200000, 0.091304],[1280793600000, 0.091087],[1280880000000, 0.091917],[1280966400000, 0.092286],[1281052800000, 0.091531],[1281139200000, 0.091887],[1281312000000, 0.091887],[1281398400000, 0.092145],[1281484800000, 0.091512],[1281571200000, 0.092887],[1281657600000, 0.092158],[1281744000000, 0.091988],[1281830400000, 0.091988],[1281916800000, 0.091988],[1282003200000, 0.092393],[1282089600000, 0.092527],[1282176000000, 0.092444],[1282262400000, 0.092223],[1282348800000, 0.092402],[1282608000000, 0.092399],[1282694400000, 0.092399],[1282780800000, 0.093452],[1282867200000, 0.093465],[1282953600000, 0.093064],[1283040000000, 0.093064],[1283126400000, 0.093064],[1283212800000, 0.093131]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });