Back to TreeGrid home
Pivot table
A demonstration of TreeGrid application creating PivotTable - two dimensional summary table.
The Pivot table is automatically generated from values in left source table according to selected columns for rows, columns and data.
The Pivot table is automatically recalculated after any change in the source table data cells and recreated after any other change in the source table.
This is a simple example accepting only one column for columns, one column for rows and one column for data.
It can be extended to support more columns per dimension and data by changing the example script.
The script that generates the Pivot table is in file PivotTable.js.