mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix(图表): 汇总表布尔类型字段汇总计算错误
This commit is contained in:
@@ -184,7 +184,8 @@ export class TableNormal extends S2ChartView<TableSheet> {
|
||||
const summaryObj = newData.reduce(
|
||||
(p, n) => {
|
||||
yAxis.forEach(axis => {
|
||||
p[axis.dataeaseName] = (n[axis.dataeaseName] || 0) + (p[axis.dataeaseName] || 0)
|
||||
p[axis.dataeaseName] =
|
||||
(parseFloat(n[axis.dataeaseName]) || 0) + (parseFloat(p[axis.dataeaseName]) || 0)
|
||||
})
|
||||
return p
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user