From cb1b3d9f5a3b3a9063b8a0b53dd6ad89d238e65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Wed, 22 Dec 2021 11:53:04 +0800 Subject: [PATCH] =?UTF-8?q?echart=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppResidentFile/AppResidentFile.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/apps/AppResidentFile/AppResidentFile.vue b/src/apps/AppResidentFile/AppResidentFile.vue index 261546e5..2fafd02c 100644 --- a/src/apps/AppResidentFile/AppResidentFile.vue +++ b/src/apps/AppResidentFile/AppResidentFile.vue @@ -44,12 +44,12 @@
- {{ chartsList.increase }} + 0 今日新增
- {{ chartsList.decrease }} + 0 今日流失
@@ -282,6 +282,13 @@ export default { initEcharts1(data) { var option = { + grid: { + top: '9%', + left: '6%', + right: '8%', + bottom: '6%', + containLabel: true, + }, xAxis: { type: 'category', data: Object.keys(data).map((e) => e.substring(e.length - 5, e.length)), @@ -328,8 +335,14 @@ export default { }, initEcharts2(data) { - console.log(data) var options = { + grid: { + top: '9%', + left: '6%', + right: '8%', + bottom: '6%', + containLabel: true, + }, xAxis: { type: 'category', data: data.map((v) => v.v1),