From 2c65c31aceb16c1d06c692266e3fb555ecafdfb5 Mon Sep 17 00:00:00 2001 From: wujian <14790700720@163.com> Date: 星期三, 23 十月 2024 09:10:47 +0800 Subject: [PATCH] change-4 --- 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