$(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: [[1522540800000,20.2126],[1522627200000,20.2126],[1522713600000,20.1003],[1522800000000,20.2616],[1522886400000,20.1781],[1522972800000,20.0487],[1523059200000,19.9833],[1523145600000,19.9833],[1523232000000,19.9833],[1523318400000,19.9833],[1523404800000,20.0979],[1523491200000,20.0918],[1523577600000,20.1491],[1523664000000,20.3646],[1523750400000,20.3646],[1523836800000,20.3646],[1523923200000,20.2614],[1524009600000,20.2581],[1524096000000,20.3046],[1524182400000,20.4335],[1524268800000,20.1608],[1524355200000,20.1608],[1524441600000,20.1608],[1524528000000,19.9703],[1524614400000,19.9341],[1524700800000,19.8602],[1524787200000,19.8611],[1524873600000,19.7923],[1524960000000,19.7923],[1525046400000,19.7923]], 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: [[1522540800000, 20.212591],[1522540800000, 20.212591],[1522627200000, 20.212591],[1522713600000, 20.100348],[1522800000000, 20.261618],[1522886400000, 20.178075],[1522972800000, 20.048666],[1523059200000, 19.983302],[1523145600000, 19.983302],[1523232000000, 19.983302],[1523318400000, 19.983302],[1523404800000, 20.097865],[1523491200000, 20.091771],[1523577600000, 20.149109],[1523664000000, 20.364566],[1523750400000, 20.364566],[1523836800000, 20.364566],[1523923200000, 20.261450],[1524009600000, 20.258081],[1524096000000, 20.304557],[1524182400000, 20.433544],[1524268800000, 20.160834],[1524355200000, 20.160834],[1524441600000, 20.160834],[1524528000000, 19.970302],[1524614400000, 19.934089],[1524700800000, 19.860193],[1524787200000, 19.861059],[1524873600000, 19.792267],[1524960000000, 19.792267],[1525046400000, 19.792267]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });