WarUI

Column Zone: Dynamic Pivot Columns

GRID-A18-F03P0baselinePlanned

Fields placed in the column zone generate result columns at runtime from the distinct values in the data. Multiple column fields create nested header groups. Users do not need to predefine these columns.

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

Row zone: Region. Column zone: Year. Value zone: sum of Revenue. Four year columns appear.

Expected behavior

Result columns appear for each distinct key combination. Adding Quarter under Year produces nested header groups. Injecting a row with Year 2025 adds a new column without a page reload.

Planned API surface

pivot.columnssetPivotColumns()pivot.columnKeyComparatorpivot.columnHeaderLabelgetPivotResultColumns()onPivotResultColumnsChange

Acceptance criteria

  • The number of result columns equals the distinct key combinations multiplied by the number of value fields. (pending)
  • Header groups nest in pivot.columns order. (pending)
  • columnKeyComparator controls left-to-right column order. (pending)
  • getPivotResultColumns() returns stable column ids that are deterministic for the same keys. (pending)
  • onPivotResultColumnsChange fires when the set of result columns changes. (pending)