Charts ยท console.warn
a chart zoom range named a value this chart'...
Printed by Charts, prefixed [lattice], since 1.72.0.
Warnings reference › chart:zoom:range
- Identifier
chart:zoom:range- Raised by
- Charts
- Since
- 1.72.0
What happened
A range handed to chart.zoom.set() or restored through chart.setState() could not be read against the axis it names - a category the chart does not have, or a value that is not a number or a date. The view was left where it was rather than moved to a coordinate nobody asked for.
The fix
On a category axis pass two of the chart's own categories; on a continuous or time axis pass two readings (a number, a Date or an ISO string). A range read back out of chart.state() always restores.
The smallest fix
chart.zoom.set(['north', 'south']);
Reference
Covered in full at the API reference.