$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1561939200000,26.7641],[1562025600000,26.6958],[1562112000000,26.4884],[1562198400000,26.4596],[1562284800000,26.2617],[1562371200000,26.021],[1562457600000,26.021],[1562544000000,26.021],[1562630400000,25.8046],[1562716800000,25.6448],[1562803200000,25.9013],[1562889600000,26.1988],[1562976000000,26.1463],[1563062400000,26.1463],[1563148800000,26.1463],[1563235200000,26.2013],[1563321600000,26.2098],[1563408000000,26.1418],[1563494400000,26.3877],[1563580800000,26.2669],[1563667200000,26.2669],[1563753600000,26.2669],[1563840000000,26.1277],[1563926400000,26.0687],[1564012800000,25.8834],[1564099200000,25.7796],[1564185600000,25.6354],[1564272000000,25.6354],[1564358400000,25.6354],[1564444800000,25.4402],[1564531200000,25.3491]], 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.764065],[1561939200000, 26.764065],[1562025600000, 26.695762],[1562112000000, 26.488428],[1562198400000, 26.459553],[1562284800000, 26.261689],[1562371200000, 26.021025],[1562457600000, 26.021025],[1562544000000, 26.021025],[1562630400000, 25.804641],[1562716800000, 25.644809],[1562803200000, 25.901313],[1562889600000, 26.198824],[1562976000000, 26.146284],[1563062400000, 26.146284],[1563148800000, 26.146284],[1563235200000, 26.201285],[1563321600000, 26.209776],[1563408000000, 26.141803],[1563494400000, 26.387656],[1563580800000, 26.266932],[1563667200000, 26.266932],[1563753600000, 26.266932],[1563840000000, 26.127692],[1563926400000, 26.068686],[1564012800000, 25.883408],[1564099200000, 25.779575],[1564185600000, 25.635365],[1564272000000, 25.635365],[1564358400000, 25.635365],[1564444800000, 25.440197],[1564531200000, 25.349143]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });