$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1125532800000,7.37218],[1125619200000,7.43948],[1125705600000,7.49505],[1125792000000,7.49505],[1125878400000,7.49505],[1125964800000,7.49505],[1126051200000,7.48105],[1126137600000,7.47318],[1126224000000,7.45327],[1126310400000,7.44961],[1126396800000,7.44961],[1126483200000,7.44961],[1126569600000,null],[1126656000000,null],[1126742400000,7.42384],[1126828800000,null],[1126915200000,null],[1127001600000,7.40626],[1127088000000,7.40626],[1127174400000,7.37303],[1127260800000,7.38001],[1127347200000,7.39391],[1127433600000,7.39169],[1127520000000,7.35777],[1127606400000,7.35777],[1127692800000,7.35777],[1127779200000,7.32777],[1127865600000,7.31333],[1127952000000,7.317],[1128038400000,7.32541]], 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, 7.372177],[1125532800000, 7.372177],[1125619200000, 7.439479],[1125705600000, 7.495050],[1125792000000, 7.495050],[1125878400000, 7.495050],[1125964800000, 7.495050],[1126051200000, 7.481049],[1126137600000, 7.473178],[1126224000000, 7.453269],[1126310400000, 7.449608],[1126396800000, 7.449608],[1126483200000, 7.449608],[1126742400000, 7.423839],[1127001600000, 7.406256],[1127088000000, 7.406256],[1127174400000, 7.373027],[1127260800000, 7.380009],[1127347200000, 7.393905],[1127433600000, 7.391686],[1127520000000, 7.357773],[1127606400000, 7.357773],[1127692800000, 7.357773],[1127779200000, 7.327772],[1127865600000, 7.313329],[1127952000000, 7.316995],[1128038400000, 7.325412]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });