Skip to content

Interface: SelectionEventData ​

Payload of selecting and selected (E6.3).

Properties ​

PropertyModifierTypeDescription
event?readonlyEvent-
lassoPoints?readonlyReadonly<Record<string, readonly unknown[]>>Lasso selections: the polygon in data (range) units, keyed by axis id.
pointsreadonlyreadonly ChartPoint[]-
range?readonlyReadonly<Record<string, readonly [unknown, unknown]>>Box selections: the box in data (range) units, keyed by axis id ({ x: [..], y: [..] }).
selections?readonlyreadonly unknown[]layout.selections after this selection (E5.12, Plotly 2.13+): box and lasso drags store their outline there; also set when a selection was moved or resized.

Released under the MIT License.