API REFERENCE

dispatchAction

One entry point over the imperative surface (ECharts dispatchAction): { type, payload } or { type, ...fields }. Routes to the method behind the type and answers { type, handled, result }; an unknown type is reported, not thrown.

정의

typescript
dispatchAction(action: ChartAction | string): Promise<ChartActionResult>
인수타입필수 여부
actionChartAction | string필수

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