onData property
LifecycleSeriesListCallback<D> ?
onData
final
Called when data is drawn to the chart (not a redraw).
This step is good for processing the data (running averages, percentage of first, etc). It can also be used to add Series of data (trend line) or remove a line as mentioned above, removing Series.
Implementation
final LifecycleSeriesListCallback<D>? onData;