sisense.com
✅ You are viewing documentation for the latest version of Compose SDK.
Version:

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

ParameterDefaultDescription
T extends AbstractDataPointWithEntriesAbstractDataPointWithEntriesThe shape of the data point.

Parameters

ParameterType
pointCustomVisualizationDataPoint< T >
nativeEventMouseEvent | PointerEvent

Returns

void

Last Updated: