Lattice Grid Buy a licence

Charts ยท console.warn

chart annotation{ (label)} of kind "{kind}", reading the {axis} axis, was not drawn: {reason}.

Printed by Charts, prefixed [lattice], since 1.68.0.

Warnings referencechart:annotation:dropped:*:*:*

Identifier
chart:annotation:dropped:*:*:*
Raised by
Charts
Since
1.68.0

What happened

An annotation could not be placed, so it was not drawn at all. The key carries the kind, the axis and the reason, so a band that has no second value and a line whose value is off the domain are two separate lines. Being told is the point: "drawn off-screen" and "never drawn" look identical on the canvas.

The fix

The reason is printed at the end of the message - usually a missing or unreadable value, or an axis the chart does not have. Annotations that read the right axis are drawn; check axis: 'right' against a chart that really has a right axis.

The smallest fix

annotations: [{ kind: 'line', axis: 'left', value: 100, label: 'Target' }]

Reference

Covered in full at the API reference.