$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1125532800000,6.15999],[1125619200000,6.25594],[1125705600000,6.33321],[1125792000000,6.33321],[1125878400000,6.33321],[1125964800000,6.33169],[1126051200000,6.30391],[1126137600000,6.28775],[1126224000000,6.27109],[1126310400000,6.26957],[1126396800000,6.26957],[1126483200000,6.26957],[1126569600000,null],[1126656000000,null],[1126742400000,6.21857],[1126828800000,null],[1126915200000,null],[1127001600000,6.18271],[1127088000000,6.18271],[1127174400000,6.13019],[1127260800000,6.13777],[1127347200000,6.17363],[1127433600000,6.17312],[1127520000000,6.11959],[1127606400000,6.11959],[1127692800000,6.11959],[1127779200000,6.07566],[1127865600000,6.06252],[1127952000000,6.07869],[1128038400000,6.09182]], 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, 6.159990],[1125532800000, 6.159990],[1125619200000, 6.255940],[1125705600000, 6.333205],[1125792000000, 6.333205],[1125878400000, 6.333205],[1125964800000, 6.331690],[1126051200000, 6.303915],[1126137600000, 6.287755],[1126224000000, 6.271090],[1126310400000, 6.269575],[1126396800000, 6.269575],[1126483200000, 6.269575],[1126742400000, 6.218570],[1127001600000, 6.182715],[1127088000000, 6.182715],[1127174400000, 6.130195],[1127260800000, 6.137770],[1127347200000, 6.173625],[1127433600000, 6.173120],[1127520000000, 6.119590],[1127606400000, 6.119590],[1127692800000, 6.119590],[1127779200000, 6.075655],[1127865600000, 6.062525],[1127952000000, 6.078685],[1128038400000, 6.091815]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });