Lattice Grid Buy a licence

Charts ยท console.warn

"zoom" narrows a chart's own axes and {type}...

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

Warnings reference › chart:*:zoom:type:*

Identifier
chart:*:zoom:type:*
Raised by
Charts
Since
1.72.0

What happened

zoom was set on a chart type that has no pair of continuous axes to narrow - a pie, a treemap, a Sankey, a geomap. No controls were added, and the option was reported rather than accepted in silence, because a caller who sets an option and sees nothing cannot tell a broken option from a broken chart.

The fix

Set zoom on a cartesian type: line, step, area, rangeArea, bar, horizontalBar, waterfall, scatter, bubble, candlestick or combo. A geomap carries its own pan and zoom already.

The smallest fix

createChart({ grid, container, type: 'line', x: 'day', y: 'price', zoom: true });

Reference

Covered in full at the API reference.