$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1125532800000,8.78261],[1125619200000,8.85965],[1125705600000,8.9698],[1125792000000,8.9698],[1125878400000,8.9698],[1125964800000,9.03399],[1126051200000,8.98577],[1126137600000,8.9698],[1126224000000,8.92226],[1126310400000,8.93805],[1126396800000,8.93805],[1126483200000,8.93805],[1126569600000,null],[1126656000000,null],[1126742400000,8.82867],[1126828800000,null],[1126915200000,null],[1127001600000,8.84413],[1127088000000,8.84413],[1127174400000,8.72193],[1127260800000,8.73702],[1127347200000,8.76736],[1127433600000,8.76736],[1127520000000,8.72193],[1127606400000,8.72193],[1127692800000,8.72193],[1127779200000,8.64726],[1127865600000,8.64726],[1127952000000,8.64726],[1128038400000,8.66209]], 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, 8.782609],[1125532800000, 8.782609],[1125619200000, 8.859649],[1125705600000, 8.969805],[1125792000000, 8.969805],[1125878400000, 8.969805],[1125964800000, 9.033989],[1126051200000, 8.985765],[1126137600000, 8.969805],[1126224000000, 8.922261],[1126310400000, 8.938053],[1126396800000, 8.938053],[1126483200000, 8.938053],[1126742400000, 8.828671],[1127001600000, 8.844133],[1127088000000, 8.844133],[1127174400000, 8.721934],[1127260800000, 8.737024],[1127347200000, 8.767361],[1127433600000, 8.767361],[1127520000000, 8.721934],[1127606400000, 8.721934],[1127692800000, 8.721934],[1127779200000, 8.647260],[1127865600000, 8.647260],[1127952000000, 8.647260],[1128038400000, 8.662093]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });