fix(图表): 瀑布图汇总提示显示错误 #9318

This commit is contained in:
wisonic-s 2024-05-27 16:06:45 +08:00
parent 7d97d924d5
commit d19045dac0

View File

@ -187,7 +187,7 @@ export class Waterfall extends G2PlotChartView<WaterfallOptions, G2Waterfall> {
let tmpValue = totalMap[id]
let color = 'grey'
if (id === yAxis[0].id) {
tmpValue = parseFloat(head.value as unknown as string)
tmpValue = head.data.value
color = head.color
}
const value = valueFormatter(tmpValue, formatter.formatterCfg)