$(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: [[1561939200000,18.3154],[1562025600000,18.3297],[1562112000000,18.3132],[1562198400000,18.2765],[1562284800000,18.1656],[1562371200000,18.0301],[1562457600000,18.0301],[1562544000000,18.0301],[1562630400000,17.8807],[1562716800000,17.6693],[1562803200000,17.789],[1562889600000,18.0249],[1562976000000,18.003],[1563062400000,18.003],[1563148800000,18.003],[1563235200000,18.1036],[1563321600000,18.1932],[1563408000000,18.1175],[1563494400000,18.3112],[1563580800000,18.2117],[1563667200000,18.2117],[1563753600000,18.2117],[1563840000000,18.0736],[1563926400000,18.0126],[1564012800000,17.8102],[1564099200000,17.769],[1564185600000,17.6189],[1564272000000,17.6189],[1564358400000,17.6189],[1564444800000,17.4291],[1564531200000,17.2836]], 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: [[1561939200000, 18.315375],[1561939200000, 18.315375],[1562025600000, 18.329686],[1562112000000, 18.313169],[1562198400000, 18.276542],[1562284800000, 18.165588],[1562371200000, 18.030138],[1562457600000, 18.030138],[1562544000000, 18.030138],[1562630400000, 17.880697],[1562716800000, 17.669280],[1562803200000, 17.788977],[1562889600000, 18.024869],[1562976000000, 18.002972],[1563062400000, 18.002972],[1563148800000, 18.002972],[1563235200000, 18.103628],[1563321600000, 18.193248],[1563408000000, 18.117516],[1563494400000, 18.311153],[1563580800000, 18.211718],[1563667200000, 18.211718],[1563753600000, 18.211718],[1563840000000, 18.073624],[1563926400000, 18.012613],[1564012800000, 17.810249],[1564099200000, 17.769037],[1564185600000, 17.618934],[1564272000000, 17.618934],[1564358400000, 17.618934],[1564444800000, 17.429141],[1564531200000, 17.283578]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });