Lattice Grid

The grid (core) ยท console.warn

'{kind}' is not an interval kind; interval()...

Printed by The grid (core), prefixed [lattice], since 1.125.0.

Warnings reference › stat.interval-kind

Identifier
stat.interval-kind
Raised by
The grid (core)
Since
1.125.0

What happened

statistics.interval(colId, { kind }) was given a kind that is neither mean nor proportion (for example median). The old code fell through to the mean loop and answered the mean's question without saying so, so kind: 'median' silently returned a mean interval. Now the call returns null - the same answer a missing column gives - and this fires once, naming the offending kind, so the typo is visible rather than a wrong number with no symptom.

The fix

Pass kind: 'mean' (the default) or kind: 'proportion', or leave kind off for the mean.

The smallest fix

grid.statistics.interval('capacity');  // mean, by default

Reference

Covered in full at the API reference.