$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1561939200000,29.7643],[1562025600000,29.7417],[1562112000000,29.5849],[1562198400000,29.4124],[1562284800000,29.203],[1562371200000,28.951],[1562457600000,28.951],[1562544000000,28.951],[1562630400000,28.7128],[1562716800000,28.5606],[1562803200000,28.8359],[1562889600000,29.1174],[1562976000000,28.9884],[1563062400000,28.9884],[1563148800000,28.9884],[1563235200000,29.0074],[1563321600000,29.0273],[1563408000000,29.0043],[1563494400000,29.1953],[1563580800000,28.9803],[1563667200000,28.9803],[1563753600000,28.9803],[1563840000000,28.7587],[1563926400000,28.6365],[1564012800000,28.4252],[1564099200000,28.3292],[1564185600000,28.3348],[1564272000000,28.3348],[1564358400000,28.3348],[1564444800000,28.0783],[1564531200000,27.9804]], 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, 29.764317],[1561939200000, 29.764317],[1562025600000, 29.741749],[1562112000000, 29.584925],[1562198400000, 29.412439],[1562284800000, 29.202999],[1562371200000, 28.950992],[1562457600000, 28.950992],[1562544000000, 28.950992],[1562630400000, 28.712824],[1562716800000, 28.560624],[1562803200000, 28.835932],[1562889600000, 29.117373],[1562976000000, 28.988385],[1563062400000, 28.988385],[1563148800000, 28.988385],[1563235200000, 29.007443],[1563321600000, 29.027327],[1563408000000, 29.004331],[1563494400000, 29.195303],[1563580800000, 28.980306],[1563667200000, 28.980306],[1563753600000, 28.980306],[1563840000000, 28.758750],[1563926400000, 28.636452],[1564012800000, 28.425158],[1564099200000, 28.329175],[1564185600000, 28.334769],[1564272000000, 28.334769],[1564358400000, 28.334769],[1564444800000, 28.078346],[1564531200000, 27.980385]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });