Akshat Goel
Akshat Goel

Reputation: 528

Implement pie-chart with variable slice sizes in MPAndroidChart

Thanks to my designer with great searching skills, I have to implement a pie chart in my android application like below.

enter image description here

I am using MPAndroidChart library for charts elsewhere in the app.

So far, I haven't written code for the chart since I can't see any setters for altering slice sizes in the documentation.

Can someone point to any resource where anything like this is achieved or if it is not possible to do it with out-of-the-box version of the library?

Thanks!

Upvotes: 2

Views: 1092

Answers (1)

Philipp Jahoda
Philipp Jahoda

Reputation: 51411

Does this kind of chart have a special name? So basically the "value" is indicated not by the (angular) space the slices use like in a normal piechart, but by their height.

Currently it is not possible to create such a chart with MPAndroidChart by default. This would require significant modification of the library. However, I am strongly considering to add such a feature in the future, because I really like the concept of this kind of chart.

Upvotes: 2

Related Questions