getOrderedSeriesList<S extends ImmutableSeries<D> > method
- @protected
- List<
S> seriesList
inherited
Gets the iterator for the series based grouped/stacked and orientation.
For vertical stacked bars:
- If grouped, return the iterator that keeps the category order but reverse the order of the series so the first series is on the top of the stack.
- Otherwise, return iterator of the reversed list
All other types, use the in order iterator.
Implementation
@protected
Iterable<S> getOrderedSeriesList<S extends ImmutableSeries<D>>(
List<S> seriesList,
) =>
(renderingVertically && config.stacked)
? config.grouped
? _ReversedSeriesIterable(seriesList)
: seriesList.reversed
: seriesList;