From 12e606635c42ea20f4b7c2bdda5204237a4b4c96 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 02 三月 2026 16:14:49 +0800
Subject: [PATCH] 优化
---
Plugin.DataBoard/Libs/Static/test.html | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/Plugin.DataBoard/Libs/Static/test.html b/Plugin.DataBoard/Libs/Static/test.html
index 2989317..d037510 100644
--- a/Plugin.DataBoard/Libs/Static/test.html
+++ b/Plugin.DataBoard/Libs/Static/test.html
@@ -208,6 +208,13 @@
{
data: [],
type: 'bar',
+ label: {
+ show: true,
+ formatter: '{c}',
+ distance: 5,
+ fontSize: 14,
+ position: 'inside'
+ },
barMaxWidth: 50
}
]
@@ -258,6 +265,12 @@
legend: {
orient: 'vertical',
left: 'left'
+ },
+ label: {
+ alignTo: 'edge',
+ formatter: '{b}\n璁℃暟:{c}\n鍗犳瘮:{d}%',
+ fontSize: 16,
+ lineHeight: 18
},
series: [
{
@@ -350,13 +363,23 @@
itemStyle: {
color: 'red'
},
+ label: {
+ show: true,
+ position: 'bottom',
+ formatter: (param) => param.value.toFixed(2) + '%'
+ },
},
{
data: [],
itemStyle: {
color: '#22448b'
},
- type: 'line'
+ type: 'line',
+ label: {
+ show: true,
+ position: 'top',
+ formatter: (param) => param.value.toFixed(2)+'%'
+ },
}
]
};
@@ -441,7 +464,7 @@
data: [],
label: {
show: true,
- formatter: '{b}',
+ formatter: '{b} 璁℃暟:{c}',
distance: 10,
fontSize: 14,
position: 'insideLeft'
--
Gitblit v1.9.1