Charts ยท console.warn
chart aggregate {value} is not a mode; use o...
Printed by Charts, prefixed [lattice], since 1.72.0.
Warnings reference › chart:aggregate:mode:*
- Identifier
chart:aggregate:mode:*- Raised by
- Charts
- Since
- 1.72.0
What happened
spec.aggregate named something other than 'auto', 'engine' or 'client' - a typo, most often. Rather than force a mode from a value that means nothing, the chart falls back to 'auto' and still draws; the mode it actually used is what chart.provenance().asked reports.
The fix
Use one of 'auto', 'engine' or 'client'. 'auto' is the default and needs no explicit value at all.
The smallest fix
createChart({ grid, container, type: 'bar', x: 'region', y: 'revenue', aggregate: 'engine' });
Reference
Covered in full at the API reference.