Class BubbleChart
Object
ObjectIdentity
AbstractBuilder
- All Implemented Interfaces:
CanDoLogarithmicAxis,CanDrillDown,CanZoom,Portlet,Portlet
public class BubbleChart
extends AbstractChartBuilder<BubbleChart>
implements CanDoLogarithmicAxis, CanDrillDown, CanZoom
Builder for a Bubble Chart, obtained via
ChartBuilder.newBubble() rather than instantiated
directly. See that factory method for the chart's overall shape (like a ScatterChart, but with a
third aggregated measure encoded as marker size) and a Groovy example.
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 aBubbleChart.BubbleSeriesbeyond its X axis, Y axis, and bubble size measures, obtained fromBubbleChart.BubbleSeries.addAdditionalMeasure()rather than instantiated directly.classThe click-event builder for aBubbleChart, obtained fromonClick()rather than instantiated directly.static classThe Options for aBubbleChart, obtained fromgetOptions()rather than instantiated directly.static classA single series of aBubbleChart, obtained fromaddSeries()rather than instantiated directly.static classThe bubble size measure of aBubbleChart.BubbleSeries, obtained fromBubbleChart.BubbleSeries.setBubbleSize(String)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
ConstructorsConstructorDescriptionBubbleChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations) -
Method Summary
Modifier and TypeMethodDescriptionAdds a horizontal, vertical, or stepped reference line to this chart, independent of its data series, for example a fixed target or threshold value.Adds a new series to this chart.ChartBuilderResultbuild()Finishes this chart's definition.booleancanDoLogarithmicAxis(char xyz) Reports that this chart's X and Y axes, but not its Z axis, may be rendered on a logarithmic scale.Returns this chart's Options builder.onClick()Configures a click-triggered Dashboard event fired when a user clicks a bubble on this chart.Methods inherited from class AbstractChartBuilder
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
-
BubbleChart
public BubbleChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations)
-
-
Method Details
-
addSeries
Adds a new series to this chart.- Returns:
- a new
BubbleChart.BubbleSeriesfor this chart. 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<BubbleChart>- Returns:
- this chart's type-specific
AbstractChartOptionsinstance. Nevernull.
-
addAuxLine
Adds a horizontal, vertical, or stepped reference line to this chart, independent of its data series, for example a fixed target or threshold value. CallAuxLine.withLine(),AuxLine.withSteppedLine(), orAuxLine.withVerticalLine()on the returned builder to choose the line's shape.- Overrides:
addAuxLinein classAbstractChartBuilder<BubbleChart>- Returns:
- a new
AuxLinebuilder for this chart. Nevernull.
-
onClick
Configures a click-triggered Dashboard event fired when a user clicks a bubble on this chart. CallBubbleChart.BubbleOnChartClick.triggerEvent(String)on the returned builder, thenBubbleChart.BubbleOnChartClick.BubbleTriggerEvent.withAggregationByAsEventDataAttr()and/orBubbleChart.BubbleOnChartClick.BubbleTriggerEvent.withBandByAsEventDataAttr()to include the clicked bubble's grouping dimension(s) in the event payload.- Returns:
- a new
BubbleChart.BubbleOnChartClickbuilder for this chart. Nevernull. - See Also:
-
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.
-
canDoLogarithmicAxis
public boolean canDoLogarithmicAxis(char xyz) Reports that this chart's X and Y axes, but not its Z axis, may be rendered on a logarithmic scale.- Specified by:
canDoLogarithmicAxisin interfaceCanDoLogarithmicAxis- Parameters:
xyz- which axis is being asked about;'x','y', or'z'- Returns:
truefor'x'or'y';falsefor'z'or any other value
-