$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1561939200000,33.283],[1562025600000,33.1503],[1562112000000,33.0768],[1562198400000,32.7715],[1562284800000,32.5454],[1562371200000,32.2743],[1562457600000,32.2743],[1562544000000,32.2743],[1562630400000,32.0366],[1562716800000,31.7428],[1562803200000,32.0656],[1562889600000,32.4283],[1562976000000,32.2854],[1563062400000,32.2854],[1563148800000,32.2854],[1563235200000,32.276],[1563321600000,32.1597],[1563408000000,32.1057],[1563494400000,32.4923],[1563580800000,32.3315],[1563667200000,32.3315],[1563753600000,32.3315],[1563840000000,31.9655],[1563926400000,31.8785],[1564012800000,31.8871],[1564099200000,31.8438],[1564185600000,31.612],[1564272000000,31.612],[1564358400000,31.612],[1564444800000,31.0453],[1564531200000,30.5286]], 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, 33.282995],[1561939200000, 33.282995],[1562025600000, 33.150258],[1562112000000, 33.076848],[1562198400000, 32.771520],[1562284800000, 32.545412],[1562371200000, 32.274275],[1562457600000, 32.274275],[1562544000000, 32.274275],[1562630400000, 32.036623],[1562716800000, 31.742844],[1562803200000, 32.065577],[1562889600000, 32.428303],[1562976000000, 32.285367],[1563062400000, 32.285367],[1563148800000, 32.285367],[1563235200000, 32.276037],[1563321600000, 32.159679],[1563408000000, 32.105746],[1563494400000, 32.492296],[1563580800000, 32.331462],[1563667200000, 32.331462],[1563753600000, 32.331462],[1563840000000, 31.965532],[1563926400000, 31.878494],[1564012800000, 31.887146],[1564099200000, 31.843772],[1564185600000, 31.611983],[1564272000000, 31.611983],[1564358400000, 31.611983],[1564444800000, 31.045350],[1564531200000, 30.528607]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });