Charts ยท console.warn
chart annotate.tools lists {names}, which {v...
Printed by Charts, prefixed [lattice], since 1.86.3.
Warnings reference › chart:annotate:tools:legacy:*
- Identifier
chart:annotate:tools:legacy:*- Raised by
- Charts
- Since
- 1.86.3
What happened
A chart's annotate.tools named one of the old measure tools (measure-x, measure-y, measure-xy). They still work as aliases for the single measure tool with the matching axes, so the rail shows one measure button; saved annotations of the old kinds restore without this warning.
The fix
List measure in annotate.tools and choose the axes with the chart option measure: { axes: 'x' | 'y' | 'xy' } (default 'xy').
The smallest fix
createChart({ grid, container, type: 'line', annotate: { tools: ['select', 'measure', 'delete'] }, measure: { axes: 'x' } });
Reference
Covered in full at the API reference.