API REFERENCE
addSeries
An asynchronous method. Check the argument and return types below.
Definition
addSeries(options: LineChartSeries | ScatterChartSeries, opts?: { redraw?: boolean; insertAt?: number }): Promise<number>| Arguments | Type | Required |
|---|---|---|
options | LineChartSeries | ScatterChartSeries | Required |
opts | { redraw?: boolean; insertAt?: number } | Optional |
Return type: Promise<number>. Call the method after element registration and await its Promise result.
- LineChartSeries
Type definition
- ScatterChartSeries
Type definition