useChart
Documentation / @elitechart/react / useChart
Defined in: react/src/use-chart.ts:37
Read the live engine handle from a <Chart /> ref.
Returns null until the chart engine boots on first paint, and
after the component unmounts. Triggers a re-render when the
handle becomes available so consumers can register listeners or
drawings on the same render.
Parameters
ref
RefObject<ChartRef | null>
Returns
ChartHandle | null