getOrderedSeriesList<S extends ImmutableSeries<D>> method

  1. @protected
Iterable<S> getOrderedSeriesList<S extends ImmutableSeries<D>>(
  1. 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) {
  return (renderingVertically && config.stacked)
      ? config.grouped
          ? _ReversedSeriesIterable(seriesList)
          : seriesList.reversed
      : seriesList;
}