Pie Chart drilldown example?

Hi:
I would like to create a drill-down function for my pie chart. Here is an example of what I’m trying to accomplish: [url=https://www.amcharts.com/kbase/drill-down-pie-chart/]https://www.amcharts.com/kbase/drill-down-pie-chart/[/url]

Is there a “Cuba” way of doing this?

Hello, Eric.

Yes, it is possible to create an drill-down PieChart with CUBA.

I’ve created a simple example which you can find here. You can ask me a question if you have some.

pie_chart

Thanks. So the basic idea is to add a click listener and just change the data provider for the chart as you go. Pretty simple.

I got confused by the nested data structures the AmCharts examples showed.

Nice

Yes, a click listener allows you to do what you want - change data, replace PieChart with StockChart for example, etc.

The main challenge is to build suitable hierarchical data structure and use it in chart. You can find additional info about objects to store data here.

A CUBA-based project with drill-down PieChart example was added to the github.