Charts ยท console.warn
editable.axis asks for an axis this chart ca...
Printed by Charts, prefixed [lattice], since 1.86.0.
Warnings reference › chart:editable:axis
- Identifier
chart:editable:axis- Raised by
- Charts
- Since
- 1.86.0
What happened
editable.axis named an axis the chart cannot drag along: 'x' or 'xy' on a chart whose x axis is not numeric (anything but a scatter or bubble), or on a pie, donut or floating bar. The sideways part is left out.
The fix
Use axis: 'y' (the default), or bind a numeric column to x on a scatter or bubble chart.
The smallest fix
createChart({ grid, container, type: 'scatter', x: 'width', y: 'height', editable: { axis: 'xy' } });
Reference
Covered in full at the API reference.