$(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: [[1414800000000,20.7257],[1414886400000,20.7257],[1414972800000,20.7257],[1415059200000,20.6816],[1415145600000,20.7253],[1415232000000,21.6014],[1415318400000,22.2067],[1415404800000,23.04],[1415491200000,23.04],[1415577600000,23.04],[1415664000000,23.4196],[1415750400000,25.0791],[1415836800000,24.9711],[1415923200000,24.6176],[1416009600000,24.264],[1416096000000,24.264],[1416182400000,24.264],[1416268800000,null],[1416355200000,23.8692],[1416441600000,23.7946],[1416528000000,23.7424],[1416614400000,23.694],[1416700800000,23.694],[1416787200000,23.694],[1416873600000,23.6189],[1416960000000,23.5281],[1417046400000,23.4614],[1417132800000,23.606],[1417219200000,23.5879],[1417305600000,23.5879]], 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: [[1414800000000, 20.725701],[1414800000000, 20.725701],[1414886400000, 20.725701],[1414972800000, 20.725701],[1415059200000, 20.681561],[1415145600000, 20.725329],[1415232000000, 21.601433],[1415318400000, 22.206654],[1415404800000, 23.040037],[1415491200000, 23.040037],[1415577600000, 23.040037],[1415664000000, 23.419551],[1415750400000, 25.079118],[1415836800000, 24.971073],[1415923200000, 24.617579],[1416009600000, 24.264038],[1416096000000, 24.264038],[1416182400000, 24.264038],[1416355200000, 23.869221],[1416441600000, 23.794618],[1416528000000, 23.742381],[1416614400000, 23.694048],[1416700800000, 23.694048],[1416787200000, 23.694048],[1416873600000, 23.618884],[1416960000000, 23.528100],[1417046400000, 23.461385],[1417132800000, 23.606030],[1417219200000, 23.587939],[1417305600000, 23.587939]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });