From fa2d99d43f79598e7313d2482dfcd954fe2b8043 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 23 Nov 2022 09:34:01 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=85=AC=E7=94=A8=E5=B7=A5=E7=A8=8B?= =?UTF-8?q?=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/3DOverview/components/DianChart.vue | 9 +++++++++ .../3DOverview/components/FadianChart.vue | 18 +++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/views/3DOverview/components/DianChart.vue b/src/views/3DOverview/components/DianChart.vue index a8a0478..d44b8c2 100644 --- a/src/views/3DOverview/components/DianChart.vue +++ b/src/views/3DOverview/components/DianChart.vue @@ -84,6 +84,15 @@ export default { left: 64, bottom: 28 }, + tooltip: { + show: true, + trigger: 'axis', + axisPointer: { + type: 'line', + axis: 'x' + }, + extraCssText: "width: 152px !important; height: 100px !important;" + }, xAxis: [ { type: 'category', diff --git a/src/views/3DOverview/components/FadianChart.vue b/src/views/3DOverview/components/FadianChart.vue index 4b86a0d..283a4fd 100644 --- a/src/views/3DOverview/components/FadianChart.vue +++ b/src/views/3DOverview/components/FadianChart.vue @@ -51,15 +51,15 @@ export default { bottom: 0, containLabel: true }, - // tooltip: { - // show: true, - // trigger: 'axis', - // axisPointer: { - // type: 'cross', - // axis: 'y' - // } - // formatter: '{b}
{a0}: {c}%
{a1}: {c1}%' - // }, + tooltip: { + show: true, + trigger: 'axis', + axisPointer: { + type: 'line', + axis: 'x' + }, + extraCssText: 'width: 152px !important; height: 100px !important;' + }, xAxis: { type: 'category', boundaryGap: false,