scores.push(last_score);
}
if (data['score']) {
- scores.push(compute_plot_score(data['score']));
+ let score = compute_plot_score(data['score']);
+ scores.push(score);
+ if (score < min_score) min_score = score;
+ if (score > max_score) max_score = score;
}
const h = scorespark.getBoundingClientRect().height;