Skip to content

Commit 8493e9d

Browse files
Apply suggested fix to docs/benchmarks/v0.8.0/charts.html from Copilot Autofix (#113)
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 6ca054e commit 8493e9d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/benchmarks/v0.8.0/charts.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ <h2>Adaptation Speed (Ops to 80%)</h2>
462462
}
463463
});
464464

465+
const scanResistanceMax = Math.max(1.0, ...scores);
466+
465467
new Chart(document.getElementById('scanResistanceChart'), {
466468
type: 'bar',
467469
data: {
@@ -481,7 +483,7 @@ <h2>Adaptation Speed (Ops to 80%)</h2>
481483
scales: {
482484
x: {
483485
beginAtZero: true,
484-
max: 1.0,
486+
max: scanResistanceMax,
485487
title: {
486488
display: true,
487489
text: 'Score (1.0 = perfect)'

0 commit comments

Comments
 (0)