From 85a12bd058cd7bd5fa987163ee99e42370d0aac8 Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Wed, 28 Feb 2024 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CN-1558=20=E8=A7=A3=E5=86=B3=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=A1=86=E8=A2=AB=E9=81=AE=E6=8C=A1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 2 +- src/views/location/chartOption.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index f2cab5d2..cf13a6f1 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -278,7 +278,7 @@ export default { const option = _.cloneDeep(pieOption) option.color = this.pieColorRamp.map(c => `rgb(${c})`) option.series[0].data = this.pieValueRamp.map((r, i) => ({ - name: `p${i}`, + name: `${r.start}~${r.end}`, value: r.count })) this.pieOption = option diff --git a/src/views/location/chartOption.js b/src/views/location/chartOption.js index f7fe6e22..7df196b2 100644 --- a/src/views/location/chartOption.js +++ b/src/views/location/chartOption.js @@ -1,6 +1,7 @@ export const pieOption = { tooltip: { - trigger: 'item' + trigger: 'item', + appendToBody: true//解决提示框被遮挡的问题 }, legend: { show: false,