From eb2ec6992789c596c71678925dfe9382742843e8 Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 30 Jun 2022 11:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=EF=BC=9Aechart?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/modules/workBench/components/dept-chart-view.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/back/src/views/modules/workBench/components/dept-chart-view.vue b/back/src/views/modules/workBench/components/dept-chart-view.vue index fd740ca1..e2614a22 100644 --- a/back/src/views/modules/workBench/components/dept-chart-view.vue +++ b/back/src/views/modules/workBench/components/dept-chart-view.vue @@ -60,6 +60,8 @@ export default { this.myChart.dispose() } this.myChart = chartDom && echarts.init(chartDom); + console.log('this.myChart------------>', this.myChart); + let lengendArr = this.dataListCopy.filter(v => v.name); @@ -98,6 +100,9 @@ export default { }, }, ], + tooltip: { + triagger: 'item' + }, "legend": { type: 'scroll', "width": "90%",