Skip to content

Documentation v1.0.0


Documentation / @openassistant/echarts / onBrushSelected

Function: onBrushSelected() ​

onBrushSelected(params, id, datasetName, eChart?, onBrushed?, onSelected?): void

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

Handles the brush selection event from ECharts and processes the selected data indices.

Parameters ​

params ​

The brush selection event parameters from ECharts

batch ​

object[]

Array of batch selection data containing selected data indices

id ​

string

The identifier for the chart instance

datasetName ​

string

Name of the dataset being visualized

eChart? ​

EChartsType

Optional ECharts instance reference

onBrushed? ​

OnBrushedCallback

onSelected? ​

OnSelected

Optional callback function to handle brush selection

Returns ​

void

Released under the MIT License.