API REFERENCE

addPointToSeries

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

Definition

typescript
addPointToSeries(idOrIndex: string | number, point: number | ScatterChartDatum, opts?: { shift?: boolean; redraw?: boolean }): Promise<boolean>
ArgumentsTypeRequired
idOrIndexstring | numberRequired
pointnumber | ScatterChartDatumRequired
opts{ shift?: boolean; redraw?: boolean }Optional

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