From d372f82db7bf15ed38f8faf2e6b90080f9343c04 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 06 十二月 2023 09:48:18 +0800
Subject: [PATCH] 显示字数修改

---
 src/views/cockpitPage/components/DeviceChart.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/cockpitPage/components/DeviceChart.vue b/src/views/cockpitPage/components/DeviceChart.vue
index f4ea752..79d1705 100644
--- a/src/views/cockpitPage/components/DeviceChart.vue
+++ b/src/views/cockpitPage/components/DeviceChart.vue
@@ -69,7 +69,7 @@
           grid: {
             right: "80px",
             bottom: "60px",
-            left: "60px",
+            left: "70px",
             top: "30px",
           },
           dataZoom: [
@@ -104,6 +104,7 @@
                 // rotate:45,
                 margin: 10,
                 show: true,
+                fontSize:12,
                 textStyle: {
                   color: function (params, index) {
                     let colorList = ["#dcb018", "#00FFFF"];
@@ -115,7 +116,7 @@
                   },
                 },
                 formatter: function (value) {
-                  if (value.length > 6) {
+                  if (value.length > 5) {
                     return `${value.slice(0, 4)}...`;
                   }
                   return value;

--
Gitblit v1.8.0