$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1559347200000,18.5583],[1559433600000,18.5583],[1559520000000,18.5583],[1559606400000,18.7529],[1559692800000,18.9821],[1559779200000,18.813],[1559865600000,18.7127],[1559952000000,18.5379],[1560038400000,18.5379],[1560124800000,18.5379],[1560211200000,18.3594],[1560297600000,18.2944],[1560384000000,18.3494],[1560470400000,18.2555],[1560556800000,18.2335],[1560643200000,18.2335],[1560729600000,18.2335],[1560816000000,18.2335],[1560902400000,18.0566],[1560988800000,18.1027],[1561075200000,18.2707],[1561161600000,18.1393],[1561248000000,18.1393],[1561334400000,18.1393],[1561420800000,18.2132],[1561507200000,18.2525],[1561593600000,18.2652],[1561680000000,18.3154],[1561766400000,18.3154],[1561852800000,18.3154]], 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, 18.558298],[1559347200000, 18.558298],[1559433600000, 18.558298],[1559520000000, 18.558298],[1559606400000, 18.752865],[1559692800000, 18.982053],[1559779200000, 18.812965],[1559865600000, 18.712716],[1559952000000, 18.537907],[1560038400000, 18.537907],[1560124800000, 18.537907],[1560211200000, 18.359355],[1560297600000, 18.294360],[1560384000000, 18.349413],[1560470400000, 18.255535],[1560556800000, 18.233473],[1560643200000, 18.233473],[1560729600000, 18.233473],[1560816000000, 18.233473],[1560902400000, 18.056599],[1560988800000, 18.102681],[1561075200000, 18.270663],[1561161600000, 18.139312],[1561248000000, 18.139312],[1561334400000, 18.139312],[1561420800000, 18.213155],[1561507200000, 18.252455],[1561593600000, 18.265186],[1561680000000, 18.315375],[1561766400000, 18.315375],[1561852800000, 18.315375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });