Pivot Tool Panel
A sidebar panel for building pivots, with a pivot-mode switch and drop zones for Row Groups, Column Labels (pivot), and Values with selectable aggregation functions. It turns the grid into a free, interactive analysis tool with no premium tier.
Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A 5,000-row sales dataset with pivot mode off.
Expected behavior
With pivot mode on and columns placed in the zones, the grid shows generated pivot columns and aggregated values. Clicking a value chip offers a choice of aggregation (sum, avg, min, max, count, first, last).
Planned API surface
sideBar panel 'pivot'gridOptions.pivotModecolumnDefs[].enablePivotcolumnDefs[].enableValuecolumnDefs[].allowedAggFuncsapi.setPivotMode(bool)api.setPivotColumns(ids)api.setValueColumns(defs)onPivotChangedAcceptance criteria
- Turning off pivot mode restores the original column layout. (pending)
- Generated pivot column headers reflect the distinct values of the pivot field. (pending)
- Changing the aggregation recomputes the values and updates the header label, for example 'avg(Revenue)'. (pending)
- Deferred mode batches changes until Apply is clicked. (pending)