Lattice Grid Buy a licence

Charts ยท console.warn

a chart `responsive` rule was ignored: each ...

Printed by Charts, prefixed [lattice], since 1.86.0.

Warnings reference › chart:responsive-rule

Identifier
chart:responsive-rule
Raised by
Charts
Since
1.86.0

What happened

One entry of the responsive array was not an object with a set object (or a function returning one), or carried a size bound that is not a finite number. That rule is skipped; the others still apply.

The fix

Write each rule as { maxWidth?: number, minWidth?: number, maxHeight?: number, minHeight?: number, set: { ...chart options } }.

The smallest fix

responsive: [{ maxWidth: 400, set: { legend: { position: 'top' } } }]

Reference

Covered in full at the API reference.