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

# Interface ChartEventProps

Chart props to be able to react on chart events.

# Properties

# Callbacks

# onBeforeRender

onBeforeRender?: BeforeRenderHandler | IndicatorBeforeRenderHandler

A callback that allows you to customize the underlying chart element before it is rendered. The returned options are then used when rendering the chart.

This callback is not supported for Areamap Chart, Scattermap Chart, Table, and PivotTable.


# onDataPointClick

onDataPointClick?: AreamapDataPointEventHandler | BoxplotDataPointEventHandler | CalendarHeatmapDataPointEventHandler | DataPointEventHandler | IndicatorDataPointEventHandler | ScatterDataPointEventHandler | ScattermapDataPointEventHandler

Click handler callback for a data point


# onDataPointContextMenu

onDataPointContextMenu?: BoxplotDataPointEventHandler | CalendarHeatmapDataPointEventHandler | DataPointEventHandler | ScatterDataPointEventHandler

Context menu handler callback for a data point


# onDataPointsSelected

onDataPointsSelected?: CalendarHeatmapDataPointsEventHandler | DataPointsEventHandler | ScatterDataPointsEventHandler

Handler callback for selection of multiple data points


# onDataReady

onDataReady?: (data) => Data

A callback that allows to modify data immediately after it has been retrieved. It can be used to inject modification of queried data.

# Parameters
Parameter Type
data Data
# Returns

Data