diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts index cd49629f3f..b38ad8a6cc 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-info.ts @@ -140,7 +140,7 @@ export class TableInfo extends S2ChartView { if (value === null || value === undefined) { return value } - if (![2, 3].includes(f.deType) || !isNumber(value)) { + if (![2, 3, 4].includes(f.deType) || !isNumber(value)) { return value } let formatCfg = f.formatterCfg diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts index ac78e09757..3a8bf91d34 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-normal.ts @@ -112,7 +112,7 @@ export class TableNormal extends S2ChartView { if (value === null || value === undefined) { return value } - if (![2, 3].includes(f.deType) || !isNumber(value)) { + if (![2, 3, 4].includes(f.deType) || !isNumber(value)) { return value } let formatCfg = f.formatterCfg diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts index 7170190fea..60eeda5f53 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/table/table-pivot.ts @@ -162,7 +162,7 @@ export class TablePivot extends S2ChartView { if (value === null || value === undefined) { return value } - if (![2, 3].includes(f.deType) || !isNumber(value)) { + if (![2, 3, 4].includes(f.deType) || !isNumber(value)) { return value } if (f.formatterCfg) {