diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts index e03b310dc6..a13fecd54e 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_table.ts @@ -1148,7 +1148,7 @@ export async function exportPivotExcel(instance: PivotSheet, chart: ChartObj) { for (let colIndex = 0; colIndex < colLeafNodes.length; colIndex++) { const dataCellMeta = layoutResult.getCellMeta(rowIndex, colIndex) const { fieldValue } = dataCellMeta - if (fieldValue) { + if (fieldValue === 0 || fieldValue) { const meta = metaMap[dataCellMeta.valueField] const cell = worksheet.getCell(rowIndex + maxColHeight + 1, rowLength + colIndex + 1) const value = meta?.formatter?.(fieldValue) || fieldValue.toString()