$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1125532800000,9.02034],[1125619200000,9.15481],[1125705600000,9.28895],[1125792000000,9.28895],[1125878400000,9.28895],[1125964800000,9.33121],[1126051200000,9.31567],[1126137600000,9.2863],[1126224000000,9.27402],[1126310400000,9.28345],[1126396800000,9.28345],[1126483200000,9.28345],[1126569600000,null],[1126656000000,null],[1126742400000,9.23459],[1126828800000,null],[1126915200000,null],[1127001600000,9.13927],[1127088000000,9.13927],[1127174400000,9.11147],[1127260800000,9.1146],[1127347200000,9.14543],[1127433600000,9.09551],[1127520000000,9.01929],[1127606400000,9.01929],[1127692800000,9.01929],[1127779200000,8.9486],[1127865600000,8.9122],[1127952000000,8.92612],[1128038400000,8.92443]], 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, 9.020340],[1125532800000, 9.020340],[1125619200000, 9.154811],[1125705600000, 9.288948],[1125792000000, 9.288948],[1125878400000, 9.288948],[1125964800000, 9.331206],[1126051200000, 9.315672],[1126137600000, 9.286302],[1126224000000, 9.274017],[1126310400000, 9.283446],[1126396800000, 9.283446],[1126483200000, 9.283446],[1126742400000, 9.234586],[1127001600000, 9.139268],[1127088000000, 9.139268],[1127174400000, 9.111467],[1127260800000, 9.114598],[1127347200000, 9.145434],[1127433600000, 9.095506],[1127520000000, 9.019293],[1127606400000, 9.019293],[1127692800000, 9.019293],[1127779200000, 8.948604],[1127865600000, 8.912201],[1127952000000, 8.926116],[1128038400000, 8.924429]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });