Charts ยท console.warn
"annotate" adds a drawing rail to a chart wi...
Printed by Charts, prefixed [lattice], since 1.72.0.
Warnings reference › chart:*:annotate:type:*
- Identifier
chart:*:annotate:type:*- Raised by
- Charts
- Since
- 1.72.0
What happened
A drawing rail was asked for on a chart type that has no readable pair of axes to anchor a drawing against - a pie, a treemap, a map, a Sankey. Every drawing is anchored in data coordinates, and those types have no x and y to invert a pointer through, so the option was refused rather than accepted and silently ignored.
The fix
Ask for the rail on a cartesian type - line, step, area, rangeArea, bar, horizontalBar, waterfall, scatter or bubble - or on combo or candlestick.
Reference
Covered in full at the API reference.