$(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: [[1551398400000,19.1784],[1551484800000,19.1108],[1551571200000,19.1108],[1551657600000,19.1108],[1551744000000,19.0206],[1551830400000,18.9293],[1551916800000,18.6268],[1552003200000,18.5733],[1552089600000,18.5733],[1552176000000,18.5733],[1552262400000,18.5733],[1552348800000,18.5662],[1552435200000,18.6616],[1552521600000,18.8581],[1552608000000,18.8249],[1552694400000,19.1071],[1552780800000,19.1071],[1552867200000,19.1071],[1552953600000,19.2679],[1553040000000,19.2977],[1553126400000,19.2802],[1553212800000,19.4162],[1553299200000,19.1366],[1553385600000,19.1366],[1553472000000,19.1366],[1553558400000,19.1149],[1553644800000,19.2416],[1553731200000,19.1948],[1553817600000,19.2856],[1553904000000,19.3221],[1553990400000,19.3221]], 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: [[1551398400000, 19.178398],[1551398400000, 19.178398],[1551484800000, 19.110808],[1551571200000, 19.110808],[1551657600000, 19.110808],[1551744000000, 19.020553],[1551830400000, 18.929322],[1551916800000, 18.626761],[1552003200000, 18.573267],[1552089600000, 18.573267],[1552176000000, 18.573267],[1552262400000, 18.573267],[1552348800000, 18.566151],[1552435200000, 18.661557],[1552521600000, 18.858059],[1552608000000, 18.824874],[1552694400000, 19.107075],[1552780800000, 19.107075],[1552867200000, 19.107075],[1552953600000, 19.267869],[1553040000000, 19.297680],[1553126400000, 19.280211],[1553212800000, 19.416179],[1553299200000, 19.136625],[1553385600000, 19.136625],[1553472000000, 19.136625],[1553558400000, 19.114900],[1553644800000, 19.241643],[1553731200000, 19.194850],[1553817600000, 19.285593],[1553904000000, 19.322058],[1553990400000, 19.322058]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });