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