From c36c3639a348cadcc0c92211fd7bde359259bdee Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 31 Oct 2023 22:38:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=8D=E4=BA=91=E5=9B=BE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E4=BA=8B=E4=BB=B6=E4=BD=8D=E7=BD=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/charts/others/word-cloud.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/word-cloud.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/word-cloud.ts index e9acde25b3..0fdfb9cce3 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/word-cloud.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/word-cloud.ts @@ -78,7 +78,7 @@ export class WordCloud extends G2PlotChartView { const options = this.setupOptions(chart, initOptions) const newChart = new G2WordCloud(container, options) newChart.on('point:click', param => { - action({ data: { data: param.data.data.datum } }) + action({ x: param.x, y: param.y, data: { data: param.data.data.datum } }) }) return newChart }