Class PieChart.PieSeries
- Enclosing class:
PieChart
A single series of a
PieChart, obtained from PieChart.addSeries() rather than
instantiated directly.-
Field Summary
Fields inherited from class AbstractChartSeries
aggregationsFilter, customersFilter, filters, productsFilterFields inherited from class BacklinkBuilder
METHOD_BACKFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a further measure to this series, independent of the measure set withsetSize(String).setCategories(String category) Sets the technical name of the dimension field each pie slice represents.setHideOther(Boolean hideOther) Hides the "Other" bucket that some chart types add to collect data points not otherwise shown, for example the remainder after aTop-N limit.setLimitTo(LimitPosition limitPosition, BigDecimal amount, LimitType limitType) Limits this series to its top or bottomamountrows by measure value, for example the top 10 customers by revenue.Sets the aggregated numeric measure that determines each slice's size.withSortByCategories(SortType sortType) Sorts this series' slices by their category values.withSortBySize(SortType sortType) Sorts this series' slices by their size values.Methods inherited from class ChartSeries.Basic
setHideDataLabelsMethods inherited from class AbstractChartSeries
addAggregationsFilter, addCustomersFilter, addDimFilter, addFilters, addFilters, addProductsFilter, getFilters, getThis, invokeAddAdditionalMeasure, protectedSetAggrFieldAxisX, protectedSetAggrFieldAxisY, protectedSetAxisX, protectedSetAxisY, protectedSetNonAggrFieldAxisX, protectedSetNonAggrFieldAxisY, setAggregationBy, setBandBy, setBoxplotAxis, setComparisonDim, setCurrency, setDatamart, setFormula, setGeneratedQueryDto, setLabel, setShowBandByLegend, setShowBoxplot, setType, setWhisker, withSortByAxisX, withSortByAxisY, withTrendLineMethods inherited from class BacklinkBuilder
back, getParentMethods inherited from class ObjectIdentity
addInvocation, addInvocation, addInvocationInternal, getClassId
-
Constructor Details
-
PieSeries
-
-
Method Details
-
setLimitTo
public LimitToMeasure<PieChart.PieSeries> setLimitTo(LimitPosition limitPosition, BigDecimal amount, LimitType limitType) Description copied from class:AbstractChartSeriesLimits this series to its top or bottomamountrows by measure value, for example the top 10 customers by revenue. Declaredprotectedhere; a concrete series type re-exposes it aspubliconly if that chart type supports Top-N/Bottom-N limiting. By default the limit applies to the series' own measure; callLimitToMeasure.setMeasure(String)on the returned builder to limit by a different measure instead.- Overrides:
setLimitToin classAbstractChartSeries<PieChart,PieChart.PieSeries> - Parameters:
limitPosition-LimitPosition.TOPorLimitPosition.BOTTOMamount- the number of rows to keeplimitType- the kind of limit to apply; currently onlyLimitType.ROWexists- Returns:
- a new
LimitToMeasurebuilder for this series. Nevernull.
-
setHideOther
Description copied from class:AbstractChartSeriesHides the "Other" bucket that some chart types add to collect data points not otherwise shown, for example the remainder after aTop-N limit. Declaredprotectedhere; a concrete series type re-exposes it aspubliconly if that chart type supports an "Other" bucket.- Overrides:
setHideOtherin classAbstractChartSeries<PieChart,PieChart.PieSeries> - Parameters:
hideOther-trueto hide the "Other" bucket;falseornullto show it- Returns:
- this series, for chaining further configuration
-
setCategories
Sets the technical name of the dimension field each pie slice represents.- Parameters:
category- the technical name of the category dimension field- Returns:
- this series, for chaining further configuration
- See Also:
-
setSize
Sets the aggregated numeric measure that determines each slice's size.- Parameters:
size- the technical name of the measure field to aggregate- Returns:
- a new
PieChart.Sizefor further configuring this measure - See Also:
-
withSortByCategories
Sorts this series' slices by their category values.- Parameters:
sortType- the sort direction to apply- Returns:
- this series, for chaining further configuration
- See Also:
-
withSortBySize
Sorts this series' slices by their size values.- Parameters:
sortType- the sort direction to apply- Returns:
- this series, for chaining further configuration
- See Also:
-
addAdditionalMeasure
Adds a further measure to this series, independent of the measure set withsetSize(String).- Returns:
- a new
PieChart.PieAdditionalMeasurefor this series. Nevernull.
-