From 2fb2e4bc2b624b3628a1dc5f51f2b752d19da164 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 8 Apr 2026 10:33:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A4=9A=E7=BB=B4=E6=95=A3=E7=82=B9=E5=9B=BE=E4=B8=AD=E6=A8=AA?= =?UTF-8?q?=E8=BD=B4=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/charts/others/scatter-multi.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter-multi.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter-multi.ts index 30c19bb9fb..054f817e2f 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter-multi.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/scatter-multi.ts @@ -414,7 +414,10 @@ export class MultiScatter extends G2PlotChartView { const value = isTimeStr ? String(rawValue) : valueFormatter(parseFloat(String(rawValue)), formatter.formatterCfg) - const name = isEmpty(formatter.chartShowName) ? formatter.name : formatter.chartShowName + let name = isEmpty(formatter.chartShowName) ? formatter.name : formatter.chartShowName + if (fieldKey === 'x') { + name = xFieldName + } result.push({ color: pointColor, name, value, marker: true }) }) datum.dynamicTooltipValue?.forEach(item => {