API REFERENCE

addSeries

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

Definition

typescript
addSeries(options: LineChartSeries | ScatterChartSeries, opts?: { redraw?: boolean; insertAt?: number }): Promise<number>
ArgumentsTypeRequired
optionsLineChartSeries | ScatterChartSeriesRequired
opts{ redraw?: boolean; insertAt?: number }Optional

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