$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1125532800000,0.17684],[1125619200000,0.17742],[1125705600000,0.17842],[1125792000000,0.17842],[1125878400000,0.17842],[1125964800000,0.17909],[1126051200000,0.17901],[1126137600000,0.17907],[1126224000000,0.17872],[1126310400000,0.17875],[1126396800000,0.17875],[1126483200000,0.17875],[1126569600000,null],[1126656000000,null],[1126742400000,0.17834],[1126828800000,null],[1126915200000,null],[1127001600000,0.17843],[1127088000000,0.17843],[1127174400000,0.17745],[1127260800000,0.17778],[1127347200000,0.17793],[1127433600000,0.17807],[1127520000000,0.17762],[1127606400000,0.17762],[1127692800000,0.17762],[1127779200000,0.17691],[1127865600000,0.17677],[1127952000000,0.17697],[1128038400000,0.1772]], 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, 0.176840],[1125532800000, 0.176840],[1125619200000, 0.177420],[1125705600000, 0.178420],[1125792000000, 0.178420],[1125878400000, 0.178420],[1125964800000, 0.179090],[1126051200000, 0.179010],[1126137600000, 0.179070],[1126224000000, 0.178720],[1126310400000, 0.178750],[1126396800000, 0.178750],[1126483200000, 0.178750],[1126742400000, 0.178340],[1127001600000, 0.178430],[1127088000000, 0.178430],[1127174400000, 0.177450],[1127260800000, 0.177780],[1127347200000, 0.177930],[1127433600000, 0.178070],[1127520000000, 0.177620],[1127606400000, 0.177620],[1127692800000, 0.177620],[1127779200000, 0.176910],[1127865600000, 0.176770],[1127952000000, 0.176970],[1128038400000, 0.177200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });