Class WaterfallChart

Object
ObjectIdentity
AbstractBuilder
All Implemented Interfaces:
Portlet, Portlet

public class WaterfallChart extends AbstractChartBuilder<WaterfallChart>
Builder for a Waterfall Chart, obtained via ChartBuilder.newWaterfall() rather than instantiated directly. See that factory method for this chart's single-series, named-column shape (one series, obtained with getSeries() rather than addSeries()) and a Groovy example.

Methods of this class are mostly self-explanatory or equivalent to the Highcharts methods described at HighCharts.Chart.

See Also:
  • Constructor Details

    • WaterfallChart

      public WaterfallChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations)
  • Method Details

    • getSeries

      public WaterfallChart.WaterfallSeries getSeries()
      Returns this chart's single series. Unlike other chart types, a Waterfall Chart has exactly one series; this method always returns the same instance rather than adding a new one on each call.
      Returns:
      this chart's WaterfallChart.WaterfallSeries. Never null.
    • getOptions

      public WaterfallChart.WaterfallOptions getOptions()
      Description copied from class: AbstractChartBuilder
      Returns this chart's Options builder. Each concrete chart type declares its own Options subclass (for example ScatterChart.ScatterOptions, BarLineChart.BarLineOptions) exposing the settings that apply to that chart type, such as title, subtitle, and axis label and bound overrides; the exact set of available options differs per chart type, which is why this method is declared abstract here rather than implemented once for every chart.
      Specified by:
      getOptions in class AbstractChartBuilder<WaterfallChart>
      Returns:
      this chart's type-specific AbstractChartOptions instance. Never null.
    • build

      public ChartBuilderResult build()
      Finishes this chart's definition. The returned object is what Dashboard portlets, Quote headers, and other Data Analyzer areas render.
      Specified by:
      build in class AbstractBuilder
      Returns:
      the finished chart definition. Never null.