stackOnAnother method

StackableValuePoint stackOnAnother(
  1. StackableValuePoint? predecessorPoint
)

Stacks this point on top of the passed predecessorPoint.

Points are constructed unstacked. Depending on chart type, a later processing can stack points using this method (if chart type is ChartTopContainer.isStacked.

Implementation

StackableValuePoint stackOnAnother(StackableValuePoint? predecessorPoint) {
  this.predecessorPoint = predecessorPoint;
  return stack();
}