Charts ยท console.warn
"cursor" is a crosshair over a chart's own a...
Printed by Charts, prefixed [lattice], since 1.86.0.
Warnings reference › chart:*:cursor:type:*
- Identifier
chart:*:cursor:type:*- Raised by
- Charts
- Since
- 1.86.0
What happened
cursor was set on a chart type that has no pair of cartesian axes to read a position from - a pie, a treemap, a Sankey, a geomap. No hairline was drawn, 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 cursor on a cartesian type: line, step, area, rangeArea, bar, horizontalBar, waterfall, scatter, bubble, candlestick, ohlc, combo or pareto.
The smallest fix
createChart({ grid, container, type: 'line', x: 'day', y: 'price', cursor: true });
Reference
Covered in full at the API reference.