Interface: ChartPoint
One data point in a hover, click or selection event (plan E6.1), shaped like Plotly's event points so handlers port unchanged.
Indexable
ts
[field: string]: unknownAnything else the trace reported for templates (marker.size, …).
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
bbox? | readonly | object | Label anchor box in container CSS px (hover and click only). |
bbox.x0 | readonly | number | - |
bbox.x1 | readonly | number | - |
bbox.y0 | readonly | number | - |
bbox.y1 | readonly | number | - |
curveNumber | readonly | number | Trace index. |
customdata? | readonly | unknown | - |
data | readonly | unknown | The input trace (as given, after updates). |
fullData | readonly | FullTrace | The trace after defaults. |
hovertext? | readonly | unknown | - |
pointIndex | readonly | number | readonly [number, number] | Same as pointNumber (Plotly has both). |
pointNumber | readonly | number | readonly [number, number] | Index into the trace's data arrays; [row, column] for a cell of a 2D grid (heatmap, image), as in Plotly. |
pointNumbers? | readonly | readonly number[] | All data indices behind an aggregated point (histogram bins, stacked segments). |
text? | readonly | unknown | - |
x? | readonly | unknown | Data values (numbers, date strings/ms, category names). |
xaxis? | readonly | AxisInfo | - |
y? | readonly | unknown | - |
yaxis? | readonly | AxisInfo | - |
z? | readonly | unknown | - |