From 31d7f4d27425a042cb05cc2aa06fcc833fe369c5 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 5 Jun 2026 10:46:26 -0600 Subject: [PATCH] fix --- src/shared/components/FlowchartStatisticsPanel.vue | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/shared/components/FlowchartStatisticsPanel.vue b/src/shared/components/FlowchartStatisticsPanel.vue index 1d6ef82..fcbdaf4 100644 --- a/src/shared/components/FlowchartStatisticsPanel.vue +++ b/src/shared/components/FlowchartStatisticsPanel.vue @@ -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",