5/27/2023 0 Comments Typescript sliceWhat happens when you click on "Other" slice?Ĭollection of key/value to set on "Other" slice. ![]() However there are a few settings you can use to tweak its functionality. The plugin works out-of-the-box, without any configuration. Var grouper = (new am4plugins_sliceGrouper.SliceGrouper()) Grouper.clickBehavior = "break" var pieSeries = (new am4charts.PieSeries()) Let grouper = (new am4plugins_sliceGrouper.SliceGrouper()) let pieSeries = (new am4charts.PieSeries()) The plugin needs to be enabled individually to a series, like for instance PieSeries.Īs with any add-on that follows plugin interface, we instantiate an object of plugin class and push it into target object's (in our case series) plugins list. js vesion import * as am4plugins_sliceGrouper from Enabling ![]() For pure JavaScript applications you'll need to include a. If you are using it in a TypeScript/ES6 application, you can import it as module. The purpose of SliceGrouper plugin is to automatically group those slices like that into a single "Other" slice.īefore you can use this plugin you need to make sure you include it. If we examine the charts closer, we'll see that the last four items have their own place, label and even legend item that take up space, even though their collective value barely comprises 10% of the whole chart. While this provide proportional information prominent, some relatively small slices, might be insignificant for conveying the "big picture, and contribute to the noise. ![]() The smaller the slice's value in comparison to other slices, the smaller the slice itself. "Percent" charts such as Pie, Funnel, Pyramid, or Pictorial Stacked depict each data item as a relatively-sized "slice". For information about using plugins, refer to this article. This tutorial will show how you can use SliceGrouper plugin (available since version 4.3.11) to automatically group small slices on Pie, Funnel, Pyramid, or Pictorial Stacked series into a single expandable "Other" slice.
0 Comments
Leave a Reply. |