# undoDrawing

undo the last drawing change.

Canonical: https://chart.syidax.com/docs/methods/undoDrawing/

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

## Definition

```typescript
undoDrawing(): Promise<DrawingsChangeEventDetail | null>
```

Return type: `Promise<DrawingsChangeEventDetail | null>`. Call the method after element registration and await its Promise result.

- [DrawingsChangeEventDetail](https://chart.syidax.com/docs/types/DrawingsChangeEventDetail.md) — Type definition

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

## Related charts

- [sy-line-chart](https://chart.syidax.com/docs/components/line.md#method-undoDrawing)
- [sy-area-chart](https://chart.syidax.com/docs/components/area.md#method-undoDrawing)
- [sy-column-chart](https://chart.syidax.com/docs/components/column.md#method-undoDrawing)
- [sy-bar-chart](https://chart.syidax.com/docs/components/bar.md#method-undoDrawing)
- [sy-scatter-chart](https://chart.syidax.com/docs/components/scatter.md#method-undoDrawing)
