$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1125532800000,3.76919],[1125619200000,3.82065],[1125705600000,3.85912],[1125792000000,3.85912],[1125878400000,3.85912],[1125964800000,3.87757],[1126051200000,3.87432],[1126137600000,3.87559],[1126224000000,3.88808],[1126310400000,3.90142],[1126396800000,3.90142],[1126483200000,3.90142],[1126569600000,null],[1126656000000,null],[1126742400000,3.89806],[1126828800000,null],[1126915200000,null],[1127001600000,3.88045],[1127088000000,3.88045],[1127174400000,3.85862],[1127260800000,3.89255],[1127347200000,3.89897],[1127433600000,3.88027],[1127520000000,3.84035],[1127606400000,3.84035],[1127692800000,3.84035],[1127779200000,3.81661],[1127865600000,3.81123],[1127952000000,3.8332],[1128038400000,3.84803]], 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: [[1125532800000, 3.769192],[1125532800000, 3.769192],[1125619200000, 3.820655],[1125705600000, 3.859122],[1125792000000, 3.859122],[1125878400000, 3.859122],[1125964800000, 3.877574],[1126051200000, 3.874325],[1126137600000, 3.875589],[1126224000000, 3.888084],[1126310400000, 3.901416],[1126396800000, 3.901416],[1126483200000, 3.901416],[1126742400000, 3.898057],[1127001600000, 3.880446],[1127088000000, 3.880446],[1127174400000, 3.858623],[1127260800000, 3.892548],[1127347200000, 3.898967],[1127433600000, 3.880269],[1127520000000, 3.840345],[1127606400000, 3.840345],[1127692800000, 3.840345],[1127779200000, 3.816606],[1127865600000, 3.811231],[1127952000000, 3.833198],[1128038400000, 3.848029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });