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 => {