From 04b8eff075a04db23e6f908855699b4d2954588c Mon Sep 17 00:00:00 2001
From: yyt <306727702@qq.com>
Date: 星期四, 23 五月 2024 18:47:01 +0800
Subject: [PATCH] 380新产品,优化

---
 jcdm-ui/src/views/dashboard/LineChart.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/jcdm-ui/src/views/dashboard/LineChart.vue b/jcdm-ui/src/views/dashboard/LineChart.vue
index 37320d2..bfbeb02 100644
--- a/jcdm-ui/src/views/dashboard/LineChart.vue
+++ b/jcdm-ui/src/views/dashboard/LineChart.vue
@@ -83,15 +83,20 @@
           left: 'left' // 鏍囬浣嶇疆
         },
         xAxis: {
-          data: ['8:00', '9:00', '10:00','11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00','21:00','22:00'],
+          data: ['8:00', '9:00', '10:00','11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00','21:00','22:00','23:00'],
           boundaryGap: false,
           axisTick: {
             show: false
-          }
+          },
+          type: 'category',
+          axisLabel: {
+            interval: 0,
+            rotate: 45,
+          },
         },
         grid: {
-          left: 10,
-          right: 10,
+          left: 20,
+          right: 20,
           bottom: 20,
           top: 30,
           containLabel: true
@@ -106,7 +111,9 @@
         yAxis: {
           axisTick: {
             show: false
-          }
+          },
+          min:0,
+          max: this.data.length === 0 ? 100 : null
         },
         legend: {
           data: this.legendTitle

--
Gitblit v1.9.3