Lattice Grid Buy a licence

Charts ยท console.warn

the chart option `responsive` takes 'auto' o...

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

Warnings reference › chart:responsive-option

Identifier
chart:responsive-option
Raised by
Charts
Since
1.86.0

What happened

The responsive option was given something other than 'auto' or an array, so the chart has no breakpoint rules and always draws from its base options.

The fix

Pass responsive: 'auto' for the built-in narrow-chart rules, or an array such as [{ maxWidth: 400, set: { legend: false } }].

The smallest fix

createChart({ grid, container, type: 'bar', x: 'q', y: 'sales', responsive: 'auto' });

Reference

Covered in full at the API reference.