mates-grid
Pivot
Mark a column pivot: true and set pivotMode. Value columns are generated from distinct keys (years here) with the configured aggregations.
Region × year
Toggle pivot mode from the atom. Secondary value columns appear for each year.
{ field: "year", pivot: true }
{ field: "amount", aggFunc: "sum" }
grid.setPivotMode(true);