Skip to content

Documentation v1.0.0


Documentation / @openassistant/echarts / handleBrushSelection

Function: handleBrushSelection()

handleBrushSelection(eChart, brushed, datasetName, onBrushed?, onSelected?): void

Defined in: components/echarts/src/echarts-updater.tsx:48

Handles brush selection events from ECharts components. Manages highlighting and callback execution for brushed data points.

Parameters

eChart

ECharts instance

EChartsType | undefined

brushed

number[]

Array of indices that are currently brushed

datasetName

string

Name of the dataset being brushed

onBrushed?

OnBrushedCallback

Optional callback function to handle brush selection

onSelected?

OnSelected

Optional callback function to handle brush selection

Returns

void

Released under the MIT License.