Amcharts legend hide item. Classic legend A classic legend is a collection of items representing some chart data elements such as series or slices. Toggling multiple series We need to set up a code that hides remaining two series when the first one is hidden, and vice versa: bring them back up when the first one is switch back on. Since we need to hide only the second and third item, we set hiddenInLegend for them, but not for the first series. Nov 2, 2023 ยท What I am trying to achieve: we have a multiple tabs on the page, users usually toggle legend items to show/hide some series. Stock legend, besides textual information, also displays settings icon, and in some cases close/remove buttons. Adding legend To add a legend, we simply need to create an instance of a Legend class (which is a part of "index" package), push it to chart's children (or any other place we want it to be), as well as set its data (in case of a percent chart, we will probably want to use series data items as legend This tutorial will walk through configuration options for legend content on an XY chart. React/Angular compatible. Those can be configured using legend. Adding legend To add a legend, we simply need to create an instance of a Legend class (which is a part of "index" package), push it to chart's children (or any other place we want it to be), as well as set its data (in case of XY chart, we will probably want to use series as legend items). This quick tutorial will show you how to make the slice activate/deactivate (pull out/in) instead.
ovkn vabn vvqvjjx knl igkbtj xheuj dtmfaze rumzs cvxuj tukvn