charton API / @chart-on/core / index / NumericChartEvents
Interface: NumericChartEvents
Defined in: packages/core/src/numeric/chart.ts:131
Events of a NumericChart, by name, with their payloads (chart.on).
Properties
chart:destroy
chart:destroy:
Record<string,never>
Defined in: packages/core/src/numeric/chart.ts:145
destroy() was called; the chart is still intact while listeners run.
chart:error
chart:error:
object
Defined in: packages/core/src/numeric/chart.ts:147
An event listener threw (a ChartError with code listener-failed), or the GPU context could not be restored.
error
error:
ChartError
chart:resize
chart:resize:
object
Defined in: packages/core/src/numeric/chart.ts:141
The chart's size changed (css px).
height
height:
number
width
width:
number
crosshair:move
crosshair:move:
NumericPointerEvent|null
Defined in: packages/core/src/numeric/chart.ts:133
The crosshair moved, or left the plot (null).
item:dropped
item:dropped:
object
Defined in: packages/core/src/numeric/chart.ts:137
setData left out an item without a finite x and value.
item
item:
unknown
reason
reason:
"invalid"
series
series:
NumericSeries
plot:click
plot:click:
NumericPointerEvent
Defined in: packages/core/src/numeric/chart.ts:139
Press and release in the plot without dragging.
range:change
range:change:
object
Defined in: packages/core/src/numeric/chart.ts:135
The visible x range changed (from < to, also when inverted).
from
from:
number
to
to:
number
theme:change
theme:change:
object
Defined in: packages/core/src/numeric/chart.ts:143
applyOptions({ theme }) changed the resolved theme.
theme
theme:
ChartTheme