Class ScatterChart
Object
ObjectIdentity
AbstractBuilder
- All Implemented Interfaces:
CanDoLogarithmicAxis,CanDrillDown,CanZoom,Portlet,Portlet
public class ScatterChart
extends AbstractChartBuilder<ScatterChart>
implements CanDoLogarithmicAxis, CanDrillDown, CanZoom
Builder for a Scatter Chart, obtained via
ChartBuilder.newScatter() rather than instantiated
directly. See that factory method for how this chart plots two independent measures against each other 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 measure column on aScatterChart.ScatterSeries, obtained fromScatterChart.ScatterSeries.addAdditionalMeasure()rather than instantiated directly.classThe click-event builder for aScatterChart, obtained fromonClick()rather than instantiated directly.static classThe Options for aScatterChart, obtained fromgetOptions()rather than instantiated directly.static classA single series of aScatterChart, obtained fromaddSeries()rather than instantiated directly. -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionScatterChart(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.build()Finishes this chart's definition.booleancanDoLogarithmicAxis(char xyz) Returns this chart's Options builder.onClick()Configures a click-triggered Dashboard event fired when a user clicks a point 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
-
Field Details
-
options
-
-
Constructor Details
-
ScatterChart
public ScatterChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations)
-
-
Method Details
-
addSeries
Adds a new series to this chart.- Returns:
- a new
ScatterChart.ScatterSeriesfor 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<ScatterChart>- 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<ScatterChart>- Returns:
- a new
AuxLinebuilder for this chart. Nevernull.
-
onClick
Configures a click-triggered Dashboard event fired when a user clicks a point on this chart. CallScatterChart.ScatterOnChartClick.triggerEvent(String)on the returned builder, thenScatterChart.ScatterOnChartClick.ScatterTriggerEvent.withAggregationByAsEventDataAttr()and/orScatterChart.ScatterOnChartClick.ScatterTriggerEvent.withBandByAsEventDataAttr()to include the clicked point's grouping dimension(s) in the event payload.- Returns:
- a new
ScatterChart.ScatterOnChartClickbuilder for this chart. Nevernull. - See Also:
-
build
Finishes this chart's definition. The returned object is what Dashboard portlets, Quote headers, and other Data Analyzer areas render.- Specified by:
buildin classAbstractBuilder- Returns:
- the finished chart definition. Never
null.
-
canDoLogarithmicAxis
public boolean canDoLogarithmicAxis(char xyz) - Specified by:
canDoLogarithmicAxisin interfaceCanDoLogarithmicAxis
-