OverlapBuster
Type classSince 4.6.2
A plugin which automatically groups PercenSeries slices that are smaller than certain percent into one "Other" slice.
By pushing an instance of Annnotation into plugin list of any Chart, it automatically applies the functionality.
Example:
let overlap = chart.plugins.push(new am4plugins_overlapBuster.OverlapBuster());
overlap.targets.push(bullet);
let overlap = chart.plugins.push(new am4plugins_overlapBuster.OverlapBuster());
overlap.targets.push(bullet);
// this plugin does not support JSON config
More info: Plugin: Overlap Buster (experimental)rmation and usage instructions
Sources
This information about OverlapBuster is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
OverlapBuster extends Plugin.
OverlapBuster is not extended by any other symbol.
Properties
collapseDelayType
numberDefault500A delay in milliseconds to postpone collapse of expanded items once they are unhovered.
d3forceSimulationType
Simulation<object,SimulationLinkDatum<SimulationNodeDatum>>A reference to the
d3.Simulationinstance for fine-grained configuration of node gravitational dynamics.More info: https://github.com/d3/d3-force#simulation For more info
revealRatioType
numberDefault0.7How much of the obstructed object should be arevealed approximately.
The number is relative (0-1). With
0meaning the objstructed objects won't be moved at all,0.5(default) will make at least half of the object show up, and1to reveal object whole.targetsA list of objects to check for overlapping.
If you push a list template into this, e.g. bullet from a series, all elements created from that templat will automatically end up in this list.
toleranceType
numberDefault2How big an area to check for overlapping elements should be checked in relation to hovered items size.
1(one) means it will affect only elements that are at least partially overlapping with the target element.2(two) will check area twice as big.Etc.
Methods
constructor()Returns
OverlapBusterConstructor
hitTest(target:Sprite,
sprite:Sprite)Returns
booleanChecks if the this element has any of its parts overlapping with another element.
init()Returns
voidInitializes plugin.
2 inherited items
Events
OverlapBuster does not have any events.