ChartClickEvent
Defined in: packages/pixi-charts/src/core/Chart.ts:46
Payload fired to handlers registered via Chart.on('click', ...).
The library reports the click; the consumer decides what to do with it
(open a detail panel, drill into the next data level via chart.update(),
etc.). Drilldown is a pattern, not a built-in — see the docs example.
Properties
Section titled “Properties”datum:
Record<string,unknown>
Defined in: packages/pixi-charts/src/core/Chart.ts:52
The original data row from the chart’s current data array — the same
reference that was passed in spec.data. Use this to identify what
the user clicked.
index:
number
Defined in: packages/pixi-charts/src/core/Chart.ts:58
Index of datum in the chart’s current data array, or -1
if it could not be located (e.g. the data was replaced between the
hit-test and event emission — should not happen in practice).
position
Section titled “position”position:
object
Defined in: packages/pixi-charts/src/core/Chart.ts:64
Click position in plot-area-local pixel coordinates (origin at the plot area’s top-left). Useful for positioning a popover or context menu at the click site.
x:
number
y:
number
series?
Section titled “series?”
optionalseries?:string
Defined in: packages/pixi-charts/src/core/Chart.ts:70
For multi-series charts (Line, Area), the name of the series the clicked datum belongs to. Undefined on single-series charts (Bar, Scatter, Heatmap, Pie).