API REFERENCE

updateSeries

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

Definition

typescript
updateSeries(idOrIndex: string | number, patch: Partial<LineChartSeries | ScatterChartSeries>, opts?: { redraw?: boolean }): Promise<boolean>
ArgumentsTypeRequired
idOrIndexstring | numberRequired
patchPartial<LineChartSeries | ScatterChartSeries>Required
opts{ redraw?: boolean }Optional

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