API REFERENCE
addPointToSeries
An asynchronous method. Check the argument and return types below.
Definition
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
Type definition