document.getElementsByTagName("audio")[0]
ticks: {
min: 1,
max: 10000,
stepSize: 10,
display: false,
}
var float = parseFloat(2000); // максимальное значение
var i = 0;
var now = 0;
for (let y = 0; y < 5000; y+=5) {
this.chart.data.labels.push(y)
}
var animateInterval = setInterval(async() => {
i+=5;
now = parseFloat(Math.pow(Math.E, 0.00006*i*1000/20));
let crashed = false;
if(now > float) {
clearInterval(animateInterval);
now = float;
crashed = true;
}
this.chart.data.datasets[0].data.push(now);
this.chart.options.scales.yAxes[0].ticks.max = Math.max(2, now);
this.chart.update();