# importDrawings

replace the drawing document from an envelope / list / JSON string.

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

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

## Definition

```typescript
importDrawings(input: ChartDrawingsInput): Promise<DrawingsChangeEventDetail | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `input` | `ChartDrawingsInput` | Required |

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
- [ChartDrawingsInput](https://chart.syidax.com/docs/types/ChartDrawingsInput.md) — Type definition

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

## Related charts

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