Class WaterfallVisualSet<T>

Type Parameters:
T - the type of elements in the visual set
All Implemented Interfaces:
IAbstractBarVisualSet<T,WaterfallVisualSet.Category>, IUpdatePolicyPropertyOwner, IAbstractChartVisualSet, IBarChartVisualSet

public class WaterfallVisualSet<T> extends BarVisualSet<T,WaterfallVisualSet.Category>
Represents a Waterfall visual set that extends BarVisualSet and visualizes data in a waterfall format. This format is designed to display cumulative effect of sequentially introduced positive or negative values.

Can be shown on a BarChart with BarsLayout == BarsLayout.STACK.

Author:
Andrey Malykhanov
  • Constructor Details

    • WaterfallVisualSet

      public WaterfallVisualSet(String name, List<T> elements, Function<T,Double> valueExtractor, Function<T,WaterfallVisualSet.ElementType> typeExtractor)
      Constructs a new WaterfallVisualSet with the specified parameters.
      Parameters:
      name - the name of the visual set
      elements - the list of elements to visualize
      valueExtractor - a function to extract the value from each element
      typeExtractor - a function to determine the WaterfallVisualSet.ElementType of each element - must it be shown as an absolute value or as a delta from from the previous value.