Class PieChart
Object
ObjectIdentity
AbstractBuilder
- All Implemented Interfaces:
CanDrillDown,Portlet,Portlet
Builder for a Pie Chart, obtained via
ChartBuilder.newPie() rather than instantiated directly.
See that factory method for this chart's category/size shape (no X or Y axis) 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 aPieChart.PieSeries, obtained fromPieChart.PieSeries.addAdditionalMeasure()rather than instantiated directly.static classThe Options for aPieChart, obtained fromgetOptions()rather than instantiated directly.static classA single series of aPieChart, obtained fromaddSeries()rather than instantiated directly.static classBuilder for the aggregated measure that determines aPieChart.PieSeries' slice sizes, obtained fromPieChart.PieSeries.setSize(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
ConstructorsConstructorDescriptionPieChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Adds a new series to this chart.build()Finishes this chart's definition.Returns this chart's Options builder.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
-
PieChart
public PieChart(IdGenerator idGenerator, Invocations<MethodInvocation> invocations)
-
-
Method Details
-
addSeries
Adds a new series to this chart.- Returns:
- a new
PieChart.PieSeriesfor 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<PieChart>- Returns:
- this chart's type-specific
AbstractChartOptionsinstance. Nevernull.
-
addAuxLine
Deprecated.since 17.1 - Pie charts do not support reference lines; this method should never have been exposed onPieChartand calling it does not add a line to the rendered chart. There is no replacement.Adds a reference line to this chart.- Overrides:
addAuxLinein classAbstractChartBuilder<PieChart>- Returns:
- a new
AuxLinebuilder for this chart. Nevernull.
-
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.
-
PieChartand calling it does not add a line to the rendered chart.