Type alias CustomVisualizationDataPointEventHandler Beta<T>
CustomVisualizationDataPointEventHandler: <
T> (point,nativeEvent) =>void
Defines an event handler for a data point click in a custom visualization.
Example
const handleClick: CustomVisualizationDataPointEventHandler<MyChartDataPoint> = (point, event) => {
console.log('Clicked:', point.entries.category[0].value);
};
Type parameters
| Parameter | Default | Description |
|---|---|---|
T extends AbstractDataPointWithEntries | AbstractDataPointWithEntries | The shape of the data point. |
Parameters
| Parameter | Type |
|---|---|
point | CustomVisualizationDataPoint< T > |
nativeEvent | MouseEvent | PointerEvent |
Returns
void