Class HeatmapChart

Object
ObjectIdentity
AbstractBuilder
All Implemented Interfaces:
CanDrillDown, CanZoom, Portlet, Portlet

public class HeatmapChart extends AbstractChartBuilder<HeatmapChart> implements CanDrillDown, CanZoom
Builder for a Heatmap, obtained via ChartBuilder.newHeatmap() rather than instantiated directly. See that factory method for the chart's overall shape (a two-category grid whose cell color comes from a separate aggregated color axis) and a Groovy example.

Unlike other chart types, a Heatmap has exactly one series, on HeatmapChart.HeatmapSeries, and its color axis can be configured as discrete color bands or a continuous gradient via HeatmapChart.HeatmapOptions.

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

See Also:
  • Constructor Details

    • HeatmapChart

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

    • getSeries

      public HeatmapChart.HeatmapSeries getSeries()
      Returns this chart's single series, creating it on first call. Unlike most chart types, a Heatmap has exactly one series rather than a list added via an addSeries() method.
      Returns:
      this chart's HeatmapChart.HeatmapSeries. Never null.
    • getOptions

      public HeatmapChart.HeatmapOptions 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<HeatmapChart>
      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 areas render.
      Specified by:
      build in class AbstractBuilder
      Returns:
      the finished chart definition. Never null.