From 038b46729cd94f281cfe5328f354ecd8693c5874 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: Mon, 27 Dec 2021 09:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMarryAndDie/AppMarryAndDie.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/apps/AppMarryAndDie/AppMarryAndDie.vue b/src/apps/AppMarryAndDie/AppMarryAndDie.vue index a78f63a8..f2b02b36 100644 --- a/src/apps/AppMarryAndDie/AppMarryAndDie.vue +++ b/src/apps/AppMarryAndDie/AppMarryAndDie.vue @@ -193,6 +193,7 @@ export default { initEchart(data) { var option = { + tooltip: {}, xAxis: { type: 'category', data: data.map((v) => v.name.replace('数量', '').replace('和操办登记', '')), @@ -225,7 +226,7 @@ export default { }, }, axisLabel: { - show: true, //是否显示刻度标签 + show: true, interval: 0, }, }, @@ -244,6 +245,13 @@ export default { color: '#919191', fontSize: 16, }, + formatter: function (params) { + if (params.value > 0) { + return params.value + } else { + return ' ' + } + }, }, }, },