mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 04:12:11 +08:00
fix(图表): 修复多维散点图中横轴名称显示逻辑
This commit is contained in:
committed by
jianneng-fit2cloud
parent
95b6bedfc9
commit
2fb2e4bc2b
@@ -414,7 +414,10 @@ export class MultiScatter extends G2PlotChartView<ScatterOptions, G2Scatter> {
|
||||
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 => {
|
||||
|
||||
Reference in New Issue
Block a user