API REFERENCE

connect

link this chart's zoom / pan with other charts (elements or ids in this chart's root): every member's zoomChange reaches the others as zoomTo({ source: 'sync' }) on the axes (default 'x'). A newcomer is aligned to this chart. Calling again replaces the link.

정의

typescript
connect(charts: ReadonlyArray<HTMLElement | string>, options?: ZoomConnectOptions): Promise<number>
인수타입필수 여부
chartsReadonlyArray<HTMLElement | string>필수
optionsZoomConnectOptions선택

반환 타입: Promise<number>. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.