# addPointToSeries

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

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

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

## Definition

```typescript
addPointToSeries(idOrIndex: string | number, point: number | ScatterChartDatum, opts?: { shift?: boolean; redraw?: boolean }): Promise<boolean>
```

| Arguments | Type | Required |
| --- | --- | --- |
| `idOrIndex` | `string \| number` | Required |
| `point` | `number \| ScatterChartDatum` | Required |
| `opts` | `{ shift?: boolean; redraw?: boolean }` | Optional |

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

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

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

## Related charts


