Interface HasStack<T>

Type Parameters:
T - origin class type
All Known Implementing Classes:
BarSeries, LineSeries

public interface HasStack<T>
A series that has stacked values. If stack the value. On the same category axis, the series with the same stack name would be put on top of each other.

Notice: stack only supports stacking on value and log axis for now. time and category axis are not supported.
  • Method Details

    • getStack

      String getStack()
      Returns:
      stack name for the series
    • setStack

      void setStack(String stack)
      Sets the stack name for the series or replaces an existing one.
      Parameters:
      stack - stack name to set
    • withStack

      default T withStack(String stack)
      Parameters:
      stack - stack name to set
      Returns:
      this
      See Also:
    • getStackStrategy

      HasStack.StackStrategy getStackStrategy()
      Returns:
      type of strategy for stacking values
    • setStackStrategy

      void setStackStrategy(HasStack.StackStrategy stackStrategy)
      Sets the stack strategy type or replaces an existing one for stack values if the stack name was specified.
      Parameters:
      stackStrategy - stack strategy type to set
    • withStackStrategy

      default T withStackStrategy(HasStack.StackStrategy stackStrategy)
      Parameters:
      stackStrategy - stack strategy type to set
      Returns:
      this
      See Also: