From b40cd8c94978d43f9d13ba9ee93a4164b68a8165 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 05 十二月 2023 16:11:51 +0800 Subject: [PATCH] 赋默认值工具类修改,根据多线程流情况修改 --- Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue index 6176e9c..9ec9ec9 100644 --- a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue +++ b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue @@ -50,7 +50,7 @@ value: newval[i][j], itemStyle: { normal: { - barBorderRadius: borderRadius, // 璁剧疆鍦嗚 + // barBorderRadius: borderRadius, // 璁剧疆鍦嗚 color: colors[i], } }, @@ -61,10 +61,14 @@ name: seriesName, type: "bar", stack: "鎬婚噺", + barWidth: 60, data: curSeriesData, label: { show: true, - position: 'top' + position: 'top', + formatter: function (params) { + return params.value === 0 ? '' : params.value; // 鍊间负 0 涓嶆樉绀猴紝鍏朵粬鎯呭喌鏄剧ず + } }, emphasis: { focus: "series", @@ -108,6 +112,9 @@ legend: { data: ["鎬婚噺", "鏂板"], left: "center", + textStyle: { + fontSize: 14 // 璋冩暣瀛椾綋澶у皬 + } }, xAxis: { type: "category", -- Gitblit v1.9.3