$(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: [[1559347200000,33.7633],[1559433600000,33.7633],[1559520000000,33.7633],[1559606400000,34.0213],[1559692800000,34.4739],[1559779200000,34.2038],[1559865600000,34.0877],[1559952000000,33.8104],[1560038400000,33.8104],[1560124800000,33.8104],[1560211200000,33.3973],[1560297600000,33.418],[1560384000000,33.6635],[1560470400000,33.5277],[1560556800000,33.4081],[1560643200000,33.4081],[1560729600000,33.4081],[1560816000000,33.4081],[1560902400000,33.0198],[1560988800000,33.153],[1561075200000,33.451],[1561161600000,33.238],[1561248000000,33.238],[1561334400000,33.238],[1561420800000,33.3937],[1561507200000,33.3311],[1561593600000,33.18],[1561680000000,33.283],[1561766400000,33.283],[1561852800000,33.283]], 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: [[1559347200000, 33.763285],[1559347200000, 33.763285],[1559433600000, 33.763285],[1559520000000, 33.763285],[1559606400000, 34.021284],[1559692800000, 34.473931],[1559779200000, 34.203847],[1559865600000, 34.087663],[1559952000000, 33.810382],[1560038400000, 33.810382],[1560124800000, 33.810382],[1560211200000, 33.397289],[1560297600000, 33.417984],[1560384000000, 33.663491],[1560470400000, 33.527726],[1560556800000, 33.408148],[1560643200000, 33.408148],[1560729600000, 33.408148],[1560816000000, 33.408148],[1560902400000, 33.019846],[1560988800000, 33.153000],[1561075200000, 33.450960],[1561161600000, 33.237994],[1561248000000, 33.237994],[1561334400000, 33.237994],[1561420800000, 33.393671],[1561507200000, 33.331102],[1561593600000, 33.179964],[1561680000000, 33.282995],[1561766400000, 33.282995],[1561852800000, 33.282995]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });