Function: selectionFromQuery()
ts
function selectionFromQuery(query, xaxis, yaxis): Record<string, unknown> | undefined;Experimental
The layout selection a finished box or lasso drag makes (Plotly's newSelections): a rect with the box (an unbounded side — selectdirection h / v — spans the axis range in view) or a path with the lasso polygon, on the subplot's axes.
Parameters
| Parameter | Type |
|---|---|
query | SelectionQuery |
xaxis | Pick<AxisInfo, "id" | "type" | "scale"> |
yaxis | Pick<AxisInfo, "id" | "type" | "scale"> |
Returns
Record<string, unknown> | undefined