From 03b5eccab026d55b41924d65894bfd114e1b42b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Thu, 17 Oct 2024 10:44:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9F=B1=E7=8A=B6=E5=9B=BE?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../container/classOverview/distribution/echarts.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue index 4ba8db2..77c3522 100644 --- a/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue +++ b/src/renderer/src/views/classTask/container/classOverview/distribution/echarts.vue @@ -74,8 +74,8 @@ function initChart() { position: 'top', formatter: params => { const value = dataList.value[params.dataIndex].value; - const percentage = ((value / total) * 100).toFixed(2); // 计算百分比并保留两位小数 - return `${percentage}%`; // 显示为百分比形式 + const percentage = ((value / total) * 100).toFixed(); // 计算百分比并保留两位小数 + return `${value}人 ${percentage}%`; // 显示为百分比形式 }, color: '#333', fontSize: 12