API REFERENCE
setSeriesData
An asynchronous method. Check the argument and return types below.
Definition
setSeriesData(idOrIndex: string | number, data: LineChartValues | ScatterChartValues, opts?: { redraw?: boolean }): Promise<boolean>| Arguments | Type | Required |
|---|---|---|
idOrIndex | string | number | Required |
data | LineChartValues | ScatterChartValues | Required |
opts | { redraw?: boolean } | Optional |
Return type: Promise<boolean>. Call the method after element registration and await its Promise result.
- LineChartValues
Type definition
- ScatterChartValues
Type definition