Type class
A plugin which automatically groups PercenSeries
slices that are smaller than certain percent into one "Other" slice.
By pushing an instance of SliceGrouper
into plugin
list of any PercentSeries
, it automatically applies the functionality.
Example:
let series = chart.series.push(new am4charts.PieSeries()); series.dataFields.valueY = "value"; series.dataFields.dateX = "date"; let grouper = series.plugins.push(new am4plugins_sliceGrouper.SliceGrouper());
var series = chart.series.push(new am4charts.PieSeries()); series.dataFields.valueY = "value"; series.dataFields.dateX = "date"; var grouper = series.plugins.push(new am4plugins_sliceGrouper.SliceGrouper());
{ // ... "series": [{ // ... }, { "type": "PieSeries", "dataFields": { "valueY": "value", "dateX": "date" }, "plugins": [{ "type": "SliceGrouper" }] }] }
@since 4.3.11
Sources
This information about SliceGrouper is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
SliceGrouper extends Plugin
.
SliceGrouper is not extended by any other symbol.
Properties
bigSlices # |
Type Default A list of big slices that do not satisfy |
---|---|
clickBehavior # |
Type What happens when "Other" slice is clicked/tapped:
|
groupName # |
Type Default A name to use for the "Other" slice. |
groupProperties # |
Custom properties to apply to the "Other" slice. @since 4.5.3 |
groupSlice # |
Type A reference to "Other" slice. |
limit # |
Type Default Maximum number of ungrouped slices to show. Any slice beyond NOTE: if @since 4.9.14 |
smallSlices # |
Type Default A list of small slices that do not satisfy |
syncLegend # |
Type Default If set to @defaylt false |
target # |
Type A series object that will need its slices grouped. |
threshold # |
Type Default Percent threshold which slices to group. If a slice is less than |
zoomOutButton # |
Type An instance of |
Methods
constructor() |
Returns Constructor |
---|---|
dispose() |
Returns Disposes the element |
init() |
Returns |
isDisposed() |
Returns Inherited from Returns if this element is already disposed. |
There is 1 inherited item currently hidden from this list. |
Events
SliceGrouper does not have any events.
Adapters
SliceGrouper does not have any adapters.