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
dispatchAction(action: ChartAction | string): Promise<ChartActionResult>| Arguments | Type | Required |
|---|---|---|
action | ChartAction | string | Required |
Return type: Promise<ChartActionResult>. Call the method after element registration and await its Promise result.
- ChartActionResult
Type definition
- ChartAction
Type definition