# addDrawing

add one drawing (an explicit id replaces).

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

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

## Definition

```typescript
addDrawing(drawing: ChartDrawingInput): Promise<ChartDrawing | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `drawing` | `ChartDrawingInput` | Required |

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

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

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

## Related charts

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