charton API / @chart-on/react / index / useChart
Function: useChart()
useChart():
Chart|null
Defined in: context.ts:13
The chart of the nearest enclosing <Chart> or <ChartShell>. It is null during server rendering and until the component has mounted, then the component renders again with the chart, so effects that depend on it run once it exists.
Returns
Chart | null