addSeries abstract method

ChartSeries? addSeries(
  1. ChartDataSets options, [
  2. bool redraw = true,
  3. bool animation = true
])

Add a series to the chart after render time. Note that this method should never be used when adding data synchronously at chart render time, as it adds expense to the calculations and rendering. When adding data at the same time as the chart is initialized, add the series as a configuration option instead. With multiple axes, the offset is dynamically adjusted.

Implementation

ChartSeries? addSeries(ChartDataSets options, [bool redraw = true, bool animation = true]);