Skip to content

Documentation / @finchart/react / ChartContainer

Function: ChartContainer() ​

ChartContainer<T>(__namedParameters): Element

Defined in: react/src/components/chart-container.tsx:173

Creates the chart and opens the channel children register through.

Doesn't take series as a prop — what to draw is up to the children. A child doesn't render DOM; it registers itself in an effect and unregisters in cleanup.

Type Parameters ​

T ​

T extends BaseDataPoint

Parameters ​

__namedParameters ​

ChartContainerProps<T>

Returns ​

Element