Class WaterfallComparisonChart.WaterfallComparisonSeries

Enclosing class:
WaterfallComparisonChart

public static class WaterfallComparisonChart.WaterfallComparisonSeries extends ChartSeries.Basic<WaterfallComparisonChart,WaterfallComparisonChart.WaterfallComparisonSeries>
A single waterfall of a WaterfallComparisonChart, obtained from WaterfallComparisonChart.addSeries() rather than instantiated directly. Like WaterfallChart.WaterfallSeries, this series is composed of named columns added with addWaterfallColumn(WaterfallColumnType, String, String), rather than a single aggregated measure.
  • Constructor Details

  • Method Details

    • getAggregation

      public WaterfallComparisonChart.Aggregation getAggregation()
      Returns the builder for the aggregation formula applied to this series' ADD and SUBTRACT columns, for example AggrFieldAxis.withPercent() or AggrFieldAxis.withTotal().
      Returns:
      this series' WaterfallComparisonChart.Aggregation builder. Never null.
    • addWaterfallColumn

      public WaterfallComparisonChart.WaterfallComparisonSeries addWaterfallColumn(WaterfallColumnType columnType, String source, String label)
      Adds a column to this series' waterfall, either an ADD or SUBTRACT step sourced from a field, or a RESULT step showing the running total.
      Parameters:
      columnType - whether this column adds to, subtracts from, or shows the running total of the waterfall
      source - the technical name of the field this column's value is sourced from; null for a RESULT column
      label - an explicit display label for this column, overriding the source field's own label; null to use that default, or required if columnType is RESULT
      Returns:
      this series, for chaining further configuration