$(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: [[1120262400000,8.9985],[1120348800000,8.9985],[1120435200000,8.9985],[1120521600000,8.88819],[1120608000000,8.86817],[1120694400000,8.87549],[1120780800000,8.82245],[1120867200000,8.76799],[1120953600000,8.76799],[1121040000000,8.76799],[1121126400000,8.82127],[1121212800000,8.93688],[1121299200000,8.9274],[1121385600000,8.88611],[1121472000000,8.89377],[1121558400000,8.89377],[1121644800000,8.89377],[1121731200000,8.8315],[1121817600000,8.79306],[1121904000000,8.77404],[1121990400000,8.84258],[1122076800000,8.82206],[1122163200000,8.82206],[1122249600000,8.82206],[1122336000000,8.77423],[1122422400000,8.77882],[1122508800000,8.77148],[1122595200000,8.84682],[1122681600000,8.85966],[1122768000000,8.85966]], 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: [[1120262400000, 8.998496],[1120262400000, 8.998496],[1120348800000, 8.998496],[1120435200000, 8.998496],[1120521600000, 8.888191],[1120608000000, 8.868172],[1120694400000, 8.875492],[1120780800000, 8.822454],[1120867200000, 8.767991],[1120953600000, 8.767991],[1121040000000, 8.767991],[1121126400000, 8.821269],[1121212800000, 8.936879],[1121299200000, 8.927398],[1121385600000, 8.886108],[1121472000000, 8.893765],[1121558400000, 8.893765],[1121644800000, 8.893765],[1121731200000, 8.831505],[1121817600000, 8.793062],[1121904000000, 8.774039],[1121990400000, 8.842579],[1122076800000, 8.822062],[1122163200000, 8.822062],[1122249600000, 8.822062],[1122336000000, 8.774230],[1122422400000, 8.778820],[1122508800000, 8.771476],[1122595200000, 8.846822],[1122681600000, 8.859662],[1122768000000, 8.859662]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });