fix
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-06-05 10:46:26 -06:00
parent 45a0638b7e
commit 31d7f4d274

View File

@@ -449,16 +449,11 @@ const criteriaBarChartData = computed(() => {
}
})
const barYMax = computed(() => {
const maxes = CRITERIA_ORDER.map((k) => data.criteria_averages[k]?.max ?? 0)
return Math.max(...maxes, 10)
})
const barOptions = computed(() => ({
const barOptions = {
responsive: true,
maintainAspectRatio: false,
aspectRatio: 1,
scales: {
y: { beginAtZero: true, max: barYMax.value },
y: { beginAtZero: true },
},
plugins: {
legend: { display: false },
@@ -473,7 +468,7 @@ const barOptions = computed(() => ({
},
},
},
}))
}
const WORD_COLORS = [
"#2080f0",