Row Zone: Hierarchical Row Fields
Fields placed in the row zone become nested group levels on the left side of the pivot. Each level can be expanded or collapsed, and the order of fields sets the hierarchy. This is the main axis analysts use to slice data.
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
Pivot mode is on. The row zone contains Region and Country. The value zone contains sum of Revenue.
Expected behavior
Changing the row fields rebuilds the hierarchy. Reordering fields swaps nesting levels. Expand and collapse affect all groups. The display style switches between one tree column and multiple level columns.
Planned API surface
pivot.rowssetPivotRows()addPivotRow()removePivotRow()pivot.rowGroupDisplayexpandAllPivotRows()collapseAllPivotRows()onPivotRowsChangeAcceptance criteria
- Group rows appear in the order given in pivot.rows. (pending)
- Each group row's value equals the aggregate of its descendant leaf rows. (pending)
- The default expanded depth is applied on first render and after the row fields change. (pending)
- Collapse all leaves only top-level rows visible. (pending)
- onPivotRowsChange reports the old and new field arrays. (pending)