Lattice Grid Buy a licence

Charts ยท console.warn

a brush on the {axis} axis filters the measu...

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

Warnings reference › chart:*:brush:measures

Identifier
chart:*:brush:measures
Raised by
Charts
Since
1.86.2

What happened

A value-axis brush: 'filter' writes one between on the measure column behind the dragged axis. That axis carries several measure columns (or none), so there is no single column the range belongs to, and nothing was written.

The fix

Put one measure on the axis you brush (axis: 'right' on a measure moves it to y2), or brush the x axis.

The smallest fix

createChart({ grid, container, type: 'line', x: 'day', measures: ['price', { col: 'volume', axis: 'right' }], brush: { mode: 'filter', axis: 'y2' } });

Reference

Covered in full at the API reference.