Skip to content
EliteChart

MagnetMode

Documentation


Documentation / @elitechart/core / MagnetMode

code
type MagnetMode = "off" | "weak" | "strong";

Defined in: magnet/magnet.ts:24

Magnet mode — controls how strongly the crosshair / drawing anchors snap to OHLC values.

Example

code
const m: MagnetMode = 'weak';
chart.setMagnet(m);