Pivot Export (CSV and XLSX)
Exports the pivot result as it appears on screen. Multi-level column headers, row group hierarchy, totals and formatted or raw values are all kept. CSV flattens the headers. XLSX keeps header merges and outline levels and can include visualization formatting where the format supports it.
Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Rows: Region > Country. Columns: Year > Quarter. Totals and heatmap are on.
Expected behavior
Download contents match the chosen options. The preview shows flattened CSV headers like '2023 | Q1 | Revenue (Sum)'. The XLSX output keeps merged header cells, row outline levels and color-scale rules.
Planned API surface
exportPivot()export.formatexport.valueModeexport.includeTotalsexport.expandAllexport.headerFlattenSeparatorexport.includeConditionalFormatsonBeforePivotExportAcceptance criteria
- Exported numeric totals equal the on-screen totals. (pending)
- CSV output follows RFC 4180 quoting. (pending)
- XLSX output opens without repair prompts in common spreadsheet apps (manual verification checklist). (pending)
- Raw mode exports unformatted numbers, and show-as values export as numbers with percent format. (pending)
- Export runs entirely client-side with no network calls. (pending)