From 2b47a907dfe2533491cb29420957949c5bf571b2 Mon Sep 17 00:00:00 2001 From: wisonic Date: Fri, 12 Dec 2025 15:03:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B1=A1=E9=99=90=E5=9B=BE=E7=82=B9=E5=87=BB=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=A7=A6=E5=8F=91=E8=81=94=E5=8A=A8=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/js/panel/charts/others/quadrant.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts index 6f5aed3424..2315e72735 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/quadrant.ts @@ -221,6 +221,9 @@ export class Quadrant extends G2PlotChartView { const { Scatter: G2Scatter } = await import('@antv/g2plot/esm/plots/scatter') const newChart = new G2Scatter(container, options) newChart.on('point:click', action) + if (options.label) { + newChart.on('label:click', action) + } newChart.on('click', () => quadrantDefaultBaseline(defaultBaselineQuadrant)) newChart.on('afterrender', () => quadrantDefaultBaseline(defaultBaselineQuadrant)) const yAxis = parseJson(chart.customStyle).yAxis