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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA further measure on aHeatmapChart.HeatmapSeriesbeyond its color axis measure, obtained fromHeatmapChart.HeatmapSeries.addAdditionalMeasure()rather than instantiated directly.static classBuilder for aHeatmapChart's continuous color gradient (ColorAxisType.INTERPOLATED), obtained fromHeatmapChart.HeatmapOptions.withInterpolatedColorAxis()rather than instantiated directly.static classThe Options for aHeatmapChart, obtained fromgetOptions()rather than instantiated directly.static classBuilder for aHeatmapChart's discrete, banded color axis (ColorAxisType.RANGED), obtained fromHeatmapChart.HeatmapOptions.withRangedColorAxis()rather than instantiated directly.static classThe single series of aHeatmapChart, obtained fromgetSeries()rather than instantiated directly. -
Field Summary
Fields inherited from class AbstractChartBuilder
dragDropEnabled, layout, messages, queryBuilderState, resizingEnabledFields inherited from class AbstractBuilder
METHOD_BUILDFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
ConstructorsConstructorDescriptionHeatmapChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations) -
Method Summary
Modifier and TypeMethodDescriptionChartBuilderResultbuild()Finishes this chart's definition.Returns this chart's Options builder.Returns this chart's single series, creating it on first call.Methods inherited from class AbstractChartBuilder
addAuxLine, addInvocation, build, fromQueryBuilderState, getDictionary, getThis, invokeAddSeries, invokeGetOptions, invokeGetSeries, layout, onCellClick, onRowClick, value, withDragDrop, withError, withHeight, withHeight, withInfo, withLabelOverride, withLayout, withLayout, withLayout, withResizing, withTab, withWarning, withWidth, withWidthMethods inherited from class ObjectIdentity
addInvocation, addInvocationInternal, getClassId
-
Constructor Details
-
HeatmapChart
public HeatmapChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations)
-
-
Method Details
-
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 anaddSeries()method.- Returns:
- this chart's
HeatmapChart.HeatmapSeries. Nevernull.
-
getOptions
Description copied from class:AbstractChartBuilderReturns this chart's Options builder. Each concrete chart type declares its own Options subclass (for exampleScatterChart.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:
getOptionsin classAbstractChartBuilder<HeatmapChart>- Returns:
- this chart's type-specific
AbstractChartOptionsinstance. Nevernull.
-
build
public ChartBuilderResult build()Finishes this chart's definition. The returned object is what Dashboard portlets, quote headers, and other areas render.- Specified by:
buildin classAbstractBuilder- Returns:
- the finished chart definition. Never
null.
-