Skip to content

Documentation / @finchart/react / ChartApi

Interface: ChartApi<T>

Defined in: components/chart-context.ts:12

자식들이 무대에 자기를 등록할 때 쓰는 창구.

pane을 직접 만들지 않고 acquire를 거치는 이유는 mainPane 때문이다. Plot에는 mainPane이 항상 있으므로, 첫 <ChartPane>이 그걸 그냥 쓰지 않으면 비어 있는 pane 하나가 맨 위에서 자리만 차지한다.

Type Parameters

T

T extends BaseDataPoint = BaseDataPoint

Properties

plot

plot: Plot

Defined in: components/chart-context.ts:13

Methods

acquirePane()

acquirePane(options): Pane

Defined in: components/chart-context.ts:14

Parameters

options

PaneOptions

Returns

Pane


releasePane()

releasePane(pane): void

Defined in: components/chart-context.ts:15

Parameters

pane

Pane

Returns

void


seriesCollector()

seriesCollector(pane): SeriesCollector<T>

Defined in: components/chart-context.ts:22

그 pane의 시리즈 목록 주인. pane 하나에 하나이므로 컨테이너가 들고 있다.

mainPane을 <ChartPane>이 가져가면 pane 밖의 <ChartSeries>와 같은 것을 나눠 쓰게 되는데, 같은 수집기라 서로 목록을 지우지 않는다.

Parameters

pane

Pane

Returns

SeriesCollector<T>