# Salmon UI Pivot Table documentation

> Guides with live demos for the Pivot Table components.

Canonical: https://salmonui.dev/docs/pivot-table

## Pivot Table

- [Pivot Table](https://salmonui.dev/docs/pivot-table/pivot-table.md): PivotTable, PivotFieldList, PivotAxisBar and PivotToolbar bound to one usePivot store; the report model, lifecycle events, virtualization, paging, on-demand features, loading state and SSR.
- [Layouts and drill down](https://salmonui.dev/docs/pivot-table/layouts.md): The compact layout (row members as a treegrid in one column) and the tabular layout (one pinned column per row field), drill down and up, expanded members, expand and collapse all, and the keyboard.
- [Appearance and templates](https://salmonui.dev/docs/pivot-table/appearance.md): The whitelisted display props, renderCell, renderHeader, getCellClassName and renderTooltip, a hyperlink recipe with onCellClick, and cell selection with its events.
- [Toolbar, export and print](https://salmonui.dev/docs/pivot-table/toolbar-and-export.md): PivotToolbar built-in and custom items, export to Excel, PDF and CSV and print from the toolbar or the instance API with a lazily loaded writer, and the onBeforeExport and onExport events.
- [State and events](https://salmonui.dev/docs/pivot-table/state.md): Controlled and uncontrolled report models, the cancellable command and event model with onBeforePivotModelChange and onError, getState and restoreState, persistState and saved reports.
- [Remote pivot](https://salmonui.dev/docs/pivot-table/remote-pivot.md): Aggregate on the server with the pivot request kind of the Salmon UI JSON protocol, a window-based remote engine on the client, auth headers and request hooks, and a Node reference handler running the same engine.
- [Accessibility and localization](https://salmonui.dev/docs/pivot-table/accessibility.md): The ARIA patterns and keyboard map of PivotTable, PivotFieldList, PivotAxisBar, PivotToolbar and the pivot dialogs, the localeText catalog, number and date formatting per locale, and right-to-left layouts.
- [Performance](https://salmonui.dev/docs/pivot-table/performance.md): Pivot Table budgets on 1,000,000 rows (initial aggregation, first paint, drill, filter, sort), the measured timings, and how the release gates assert them.
- [Export](https://salmonui.dev/docs/pivot-table/export.md): Export a pivot result to an outlined XLSX sheet, a paginated PDF or CSV with exportPivot, with number formats, total styles, conditional formats, a cell hook, streamed CSV and server-side export of remote pivots.

## Fields and filters

- [Field list](https://salmonui.dev/docs/pivot-table/field-list.md): The popup and standalone PivotFieldList bound to the shared store, field search, field order and folders, drag and drop with the keyboard Move-to alternative, field menus, deferUpdate, field move events, the Values item and small screens.
- [Axis bar](https://salmonui.dev/docs/pivot-table/axis-bar.md): PivotAxisBar, the grouping bar - field buttons for the Filters, Columns, Rows and Values axes with sort, filter, aggregation and remove, the fields panel, per-field options, drag and drop and the keyboard.
- [Filtering UI](https://salmonui.dev/docs/pivot-table/filtering-ui.md): The member editor dialog with search, select all and a virtualized member list without a node limit, the label and value filter forms, and the onBeforeFilterChange, onFilterChange and onBeforeMemberEditorOpen events.
- [Editors](https://salmonui.dev/docs/pivot-table/editors.md): The calculated field editor with live formula validation, the number format and conditional format dialogs, and the grouping dialog for number ranges, date parts and custom groups, opened from menus, the toolbar or the instance API.

## Drill through and chart

- [Drill through](https://salmonui.dev/docs/pivot-table/drill-through.md): Open the raw rows behind a value cell in a DataGrid dialog with a column chooser and a row limit, edit them in any Data Grid editing mode, and write the edits back with incremental re-aggregation and onDataChange.
- [Pivot chart](https://salmonui.dev/docs/pivot-table/chart.md): Compose Chart with PivotTable; pivotChartProps and pivotToSeries turn a pivot result into Chart data and series, point clicks drill down, up or through, and the chart exports, prints and joins the table in one PDF.

## Engine

- [Pivot engine](https://salmonui.dev/docs/pivot-table/engine.md): The framework-agnostic pivot engine at @salmonui/pivot-table/engine — report model, local and CSV data, field definitions, the result accessors, incremental data updates, time slicing and the Worker host.
- [Aggregation](https://salmonui.dev/docs/pivot-table/aggregation.md): Pivot aggregation types over mergeable states, show values as, the getCellValue override, calculated field formulas and automatic data compression.
- [Filtering, sorting and grouping](https://salmonui.dev/docs/pivot-table/filtering-and-sorting.md): Pivot member, label and value filters (top and bottom N), member sort with locale collation and custom order, value sort, and number, date and custom grouping in the engine.
- [Totals and values placement](https://salmonui.dev/docs/pivot-table/totals-and-layout.md): Pivot grand totals and subtotals with their positions, values on rows or columns at any level, empty members and the value header.
