Skip to content

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 ​

ParameterType
querySelectionQuery
xaxisPick<AxisInfo, "id" | "type" | "scale">
yaxisPick<AxisInfo, "id" | "type" | "scale">

Returns ​

Record<string, unknown> | undefined

Released under the MIT License.