Charts ยท console.warn
chart measure fn {fn} is not a known aggregation; using '{default}'. Supported: {list}.
Printed by Charts, prefixed [lattice], since 1.31.0.
Warnings reference › chart:measure:fn:*
- Identifier
chart:measure:fn:*- Raised by
- Charts
- Since
- 1.31.0
What happened
A measure named an aggregation that does not exist. The chart falls back to the default aggregation and still draws - which is exactly the danger, because a chart drawn from a mistyped fn looks plausible and is wrong. That is why it is named, with the value and the supported set, rather than left to be discovered.
The fix
Use one of the aggregations listed in the message.
The smallest fix
measures: [{ col: 'amount', fn: 'sum' }]
Reference
Covered in full at the API reference.