$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1280620800000,1.16497],[1280707200000,1.16497],[1280793600000,1.16504],[1280880000000,1.16515],[1280966400000,1.16521],[1281052800000,1.16524],[1281139200000,1.16576],[1281225600000,null],[1281312000000,1.16576],[1281398400000,1.16594],[1281484800000,1.16509],[1281571200000,1.16458],[1281657600000,1.16285],[1281744000000,1.16103],[1281830400000,1.16103],[1281916800000,1.16103],[1282003200000,1.15903],[1282089600000,1.16165],[1282176000000,1.16171],[1282262400000,1.16201],[1282348800000,1.16202],[1282435200000,null],[1282521600000,null],[1282608000000,1.16197],[1282694400000,1.16197],[1282780800000,1.16053],[1282867200000,1.16033],[1282953600000,1.16015],[1283040000000,1.16015],[1283126400000,1.16015],[1283212800000,1.15921]], 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, 1.164970],[1280620800000, 1.164970],[1280707200000, 1.164970],[1280793600000, 1.165039],[1280880000000, 1.165154],[1280966400000, 1.165215],[1281052800000, 1.165238],[1281139200000, 1.165760],[1281312000000, 1.165760],[1281398400000, 1.165940],[1281484800000, 1.165087],[1281571200000, 1.164581],[1281657600000, 1.162848],[1281744000000, 1.161030],[1281830400000, 1.161030],[1281916800000, 1.161030],[1282003200000, 1.159030],[1282089600000, 1.161649],[1282176000000, 1.161713],[1282262400000, 1.162013],[1282348800000, 1.162016],[1282608000000, 1.161972],[1282694400000, 1.161972],[1282780800000, 1.160530],[1282867200000, 1.160326],[1282953600000, 1.160154],[1283040000000, 1.160154],[1283126400000, 1.160154],[1283212800000, 1.159211]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });