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.
정의
dispatchAction(action: ChartAction | string): Promise<ChartActionResult>| 인수 | 타입 | 필수 여부 |
|---|---|---|
action | ChartAction | string | 필수 |
반환 타입: Promise<ChartActionResult>. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.
- ChartActionResult
타입 정의
- ChartAction
타입 정의