The grid (core) · console.warn
a multiplicative decomposition of '{col}' meets a non-positive value, where the ratio value ÷ trend is undefined; those rows report null. Use the additive model for a series that crosses or sits at zero.
Printed by The grid (core), prefixed [lattice], since 1.30.0.
Warnings reference › grid.ts.multiplicative:*
- Identifier
grid.ts.multiplicative:*- Raised by
- The grid (core)
- Since
- 1.30.0
What happened
A multiplicative decomposition divides by the trend, which is meaningless at or below zero. The rows at fault report null - the rest of the series is decomposed normally - so the column has gaps where the values touch zero.
The fix
Use the additive model for a series that crosses or sits at zero.
The smallest fix
decompose: { of: 'balance', period: 12, model: 'additive' }
Reference
Covered in full at the API reference.