forked from github/dataease
Merge pull request #11220 from dataease/pr@dev-v2@fix_table
Pr@dev v2@fix table
This commit is contained in:
commit
38cf8120f8
@ -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
|
||||
},
|
||||
|
@ -70,7 +70,7 @@ export abstract class S2ChartView<P extends SpreadSheet> extends AntVAbstractCha
|
||||
switch (cell.cellType) {
|
||||
case 'dataCell':
|
||||
if (meta.valueField === SERIES_NUMBER_FIELD) {
|
||||
content = meta.fieldValue
|
||||
content = meta.fieldValue.toString()
|
||||
break
|
||||
}
|
||||
field = find(metaConfig, item => item.field === meta.valueField)
|
||||
|
Loading…
Reference in New Issue
Block a user