From 312226b09c8cd3adc46a3f2b5ecf34658551f2d0 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 05 十二月 2023 19:02:35 +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