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.

Definition

typescript
dispatchAction(action: ChartAction | string): Promise<ChartActionResult>
ArgumentsTypeRequired
actionChartAction | stringRequired

Return type: Promise<ChartActionResult>. Call the method after element registration and await its Promise result.