From ea96725351a6b1c05e8c4c32f6e5785d266f8fe2 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期三, 06 十二月 2023 14:26:48 +0800
Subject: [PATCH] 集团码导入功能开发
---
Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
index 6176e9c..050e580 100644
--- a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
+++ b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
@@ -36,7 +36,7 @@
);
});
- let colors = ["#91CC75", "#5470C6"];
+ let colors = ['#2eadd6', '#FFA500'];
const seriesData = [];
for (let i = 0; i < newval.length; i++) {
@@ -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