From 42e8be72925e16874b21e638cf4e026b5af9d851 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 19 Jan 2026 17:17:06 +0800
Subject: [PATCH] feat:echarts图表样式调整

---
 applications/drone-command/src/views/basicManage/deviceStock/DeviceChart3.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/applications/drone-command/src/views/basicManage/deviceStock/DeviceChart3.vue b/applications/drone-command/src/views/basicManage/deviceStock/DeviceChart3.vue
index 8821d74..ebc4d98 100644
--- a/applications/drone-command/src/views/basicManage/deviceStock/DeviceChart3.vue
+++ b/applications/drone-command/src/views/basicManage/deviceStock/DeviceChart3.vue
@@ -42,7 +42,7 @@
 			top: 15,
 			left: 10,
 			right: 10,
-			bottom: 10,
+			bottom: 0,
 			containLabel: true,
 		},
 		tooltip: {
@@ -76,10 +76,19 @@
 				color: '#FFFFFF',
 				fontSize: 12,
 				interval: 0,
+				rotate: 25,
+				margin: 8,
+				formatter: value => {
+					if (value == null) return ''
+					const text = String(value)
+					return text.length > 4 ? `${text.slice(0, 4)}...` : text
+				},
 			},
 		},
 		yAxis: {
 			type: 'value',
+			min: 1,
+			minInterval: 1,
 			axisLabel: {
 				color: '#FFFFFF',
 				fontSize: 12,
@@ -115,8 +124,9 @@
 				symbolRepeat: 'fixed',
 				symbolMargin: 3,
 				symbol: 'rect',
-				symbolClip: false,
+				symbolClip: true,
 				symbolPosition: 'end',
+				clip: true,
 				symbolSize: [10, 3],
 				data: values,
 				z: 2,

--
Gitblit v1.9.3