Type alias CustomVisualizationDataPointsEventHandler Beta<T>
CustomVisualizationDataPointsEventHandler: <
T> (points,nativeEvent) =>void
Defines an event handler for multi-point selection in a custom visualization.
Example
const handleSelect: CustomVisualizationDataPointsEventHandler<MyChartDataPoint> = (
points,
event,
) => {
console.log('Selected:', points.length, 'points');
};
Type parameters
| Parameter | Default | Description |
|---|---|---|
T extends AbstractDataPointWithEntries | AbstractDataPointWithEntries | The shape of the data point. |
Parameters
| Parameter | Type |
|---|---|
points | CustomVisualizationDataPoint< T >[] |
nativeEvent | MouseEvent |
Returns
void