Pivot Tables
Transform flat data into cross-tabulated views. This is a premium feature in most competitors -- Yable includes it for free under MIT.
How to Enable
Pivot tables are built on top of grouping and aggregation. Configure row groups, column groups, and value aggregations:
const table = useTable({
data,
columns,
enableGrouping: true,
initialState: {
grouping: ['region', 'category'], // Row grouping
},
})
Notes
- Pivot tables build on the grouping + aggregation features
- Full pivot table configuration (row fields, column fields, value fields) is being developed
- For the current version, use grouping with aggregation functions to achieve pivot-like views