$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1561939200000,26.1779],[1562025600000,26.2065],[1562112000000,26.179],[1562198400000,26.0448],[1562284800000,25.8708],[1562371200000,25.7114],[1562457600000,25.7114],[1562544000000,25.7114],[1562630400000,25.6022],[1562716800000,25.4892],[1562803200000,25.7005],[1562889600000,25.8018],[1562976000000,25.7606],[1563062400000,25.7606],[1563148800000,25.7606],[1563235200000,25.7409],[1563321600000,25.8641],[1563408000000,25.8621],[1563494400000,26.03],[1563580800000,25.8153],[1563667200000,25.8153],[1563753600000,25.8153],[1563840000000,25.6431],[1563926400000,25.63],[1564012800000,25.5163],[1564099200000,25.4873],[1564185600000,25.4397],[1564272000000,25.4397],[1564358400000,25.4397],[1564444800000,25.2526],[1564531200000,25.0855]], 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, 26.177939],[1561939200000, 26.177939],[1562025600000, 26.206493],[1562112000000, 26.179033],[1562198400000, 26.044841],[1562284800000, 25.870835],[1562371200000, 25.711361],[1562457600000, 25.711361],[1562544000000, 25.711361],[1562630400000, 25.602161],[1562716800000, 25.489178],[1562803200000, 25.700474],[1562889600000, 25.801837],[1562976000000, 25.760584],[1563062400000, 25.760584],[1563148800000, 25.760584],[1563235200000, 25.740920],[1563321600000, 25.864142],[1563408000000, 25.862087],[1563494400000, 26.030049],[1563580800000, 25.815345],[1563667200000, 25.815345],[1563753600000, 25.815345],[1563840000000, 25.643112],[1563926400000, 25.630047],[1564012800000, 25.516300],[1564099200000, 25.487337],[1564185600000, 25.439728],[1564272000000, 25.439728],[1564358400000, 25.439728],[1564444800000, 25.252582],[1564531200000, 25.085516]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });