The grid (core) ยท console.warn
pivotView is on but the grid has no pivot di...
Printed by The grid (core), prefixed [lattice], since 1.86.1.
Warnings reference › pivotView.no-dimension
- Identifier
pivotView.no-dimension- Raised by
- The grid (core)
- Since
- 1.86.1
What happened
pivotView: true needs at least one dimension on some axis; with none it would be a single grand cell, which the totals row already shows. The body is left empty.
The fix
Put a column on the pivot (its pivot setting, or pivotBy in the query) and group by a column for the rows.
The smallest fix
createGrid(el, { pivotView: true, groupBy: ['region'], pivotBy: ['year'] });
Reference
Covered in full at the API reference.