# 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.

Canonical: https://chart.syidax.com/ko/docs/methods/dispatchAction/

<a id="definition"></a>

## 정의

```typescript
dispatchAction(action: ChartAction | string): Promise<ChartActionResult>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `action` | `ChartAction \| string` | 필수 |

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

- [ChartActionResult](https://chart.syidax.com/ko/docs/types/ChartActionResult.md) — 타입 정의
- [ChartAction](https://chart.syidax.com/ko/docs/types/ChartAction.md) — 타입 정의

<a id="related"></a>

## 관련 차트


