amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 322 forks source link

How to change legend when use slice grouper by zoom click behavior #4381

Closed AO-owen closed 8 months ago

AO-owen commented 9 months ago

When I use the slice grouper for pie chart to group items to 'other' and set click behavior to 'zoom', after clicking 'other' , the legends just become to disabled, is there any way to use the 'other' items to build new legends to replace the current legends

zeroin commented 9 months ago

Well, theoretically it is possible, but quite complicated. You should start with this tutorial: https://www.amcharts.com/docs/v4/concepts/legend/#Adding_custom_items

My suggestion would be not to modify the original legend but create a separate legend for this case.

AO-owen commented 9 months ago

Well, theoretically it is possible, but quite complicated. You should start with this tutorial: https://www.amcharts.com/docs/v4/concepts/legend/#Adding_custom_items

My suggestion would be not to modify the original legend but create a separate legend for this case.

I have found a property to solve it, thx. https://www.amcharts.com/docs/v4/reference/slicegrouper/#syncLegend_property

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.