Skip to content

Interface: ChartClickDatum

A normalized description of a clicked chart element.

In the common cross-filter case, ChartClickDatum.name carries the dimension value of the clicked element.

dataIndex: number


name: string

Category label of the clicked element — the dimension value in the common cross-filter case.


raw: unknown


seriesIndex: number


optional seriesName?: string


value: string | number | null

The datum’s scalar value:

  • bar / pie — the datum itself.
  • time-series / scatter — the y-component of the [x, y] point (see ChartClickDatum.x / ChartClickDatum.y).
  • heatmap — the cell value (the third entry of ECharts’ [xIndex, yIndex, value] triple), not an axis index.
  • radar — null; the item holds one value per indicator, so there is no single scalar to report. Read the vector from ChartClickDatum.raw.

null whenever there is no scalar value to surface.


optional x?: string | number


optional y?: string | number