# updateSeries

An asynchronous method. Check the argument and return types below.

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

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

## Definition

```typescript
updateSeries(idOrIndex: string | number, patch: Partial<LineChartSeries | ScatterChartSeries>, opts?: { redraw?: boolean }): Promise<boolean>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | Required |
| `patch` | `Partial<LineChartSeries \| ScatterChartSeries>` | Required |
| `opts` | `{ redraw?: boolean }` | Optional |

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

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

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

## Related charts

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