Merge pull request #9886 from dataease/pr@dev-v2@fix_waterfall_tooltip_sum

fix(图表): 瀑布图汇总提示显示错误 #9318
This commit is contained in:
wisonic-s 2024-05-27 16:08:24 +08:00 committed by GitHub
commit 6931ade2bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)