From b334d1f970f9681f92580418a81ac90bcaaf319a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Fri, 8 May 2026 17:30:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=83=AD=E5=9B=BE):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E5=8F=82=E6=95=B0=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/js/panel/charts/g2/table/t-heatmap.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts index 9ce519d9b0..0fcaa53267 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/table/t-heatmap.ts @@ -117,10 +117,10 @@ export class TableG2Chart extends G2ChartView { const newChart = new G2Chart({ container }) newChart.options(options) newChart.on('plot:click', param => { - if (!param.data?.data) { + if (!param?.target?.__data__?.data) { return } - const pointData = param.data.data + const pointData = param.target.__data__.data const dimensionList = [] chart.data.fields.forEach(item => { Object.keys(pointData).forEach(key => { @@ -134,11 +134,11 @@ export class TableG2Chart extends G2ChartView { }) }) action({ - x: param.data.x, - y: param.data.y, + x: param.x, + y: param.y, data: { data: { - ...param.data.data, + ...pointData, value: dimensionList[1].value, name: dimensionList[1].id, dimensionList: dimensionList,