# setDrawingSpace

move a drawing to the other coordinate space (its anchors convert at the current frame).

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

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

## Definition

```typescript
setDrawingSpace(id: string, space: DrawingSpace): Promise<ChartDrawing | null>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `id` | `string` | Required |
| `space` | `DrawingSpace` | 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
- [DrawingSpace](https://chart.syidax.com/docs/types/DrawingSpace.md) — Type definition

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

## Related charts

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