How to draw pie like chart in Android
Asked Answered
S

2

7

How can I draw something like the circular chart in image below in android :

enter image description here

Sherard answered 19/4, 2015 at 15:44 Comment(4)
It seems a grey circle and colored 3 arcs... All of them sharing the same center point and the same radius.Meeks
@DerGolem how to round end points of arc?Sherard
Like this https://mcmap.net/q/631829/-draw-a-line-with-curved-edges-in-androidMeeks
have you found any solution for thisIncinerator
A
3

How about this libabry.. ? it has pie charts

https://github.com/PhilJay/MPAndroidChart

Documentation is here

Ascidium answered 19/4, 2015 at 15:48 Comment(9)
It's heavy for my small project, I just need pie chart.Sherard
I don't think there is a easier way to do this other than using a libraryLibelant
@Aryan There is. Simply use drawCircle() and drawArc().Meeks
@AVEbrahimi: Define heavy :-) The whole library comes in a 600kb jar file.Salaam
Using pie chart graph from MP Chart, how can I set the curve to the corner in android?Checkoff
@PhilippJahoda need help can we design pie chart like this using your libraryIncinerator
What about proguard etc. @PhilippJahoda Doesn't that remove unused references and classesSapotaceous
how to enable animation om curved part.??for default view animation is working fine but for curved animation is not working! @PhilippJahodaReify
@ParthBhayani use pieChart.setDrawRoundedSlices(true) from MP chart.Heterocercal
R
0

try this library

You can draw one by one layers

https://github.com/RamiJ3mli/PercentageChartView

Recourse answered 4/7, 2022 at 7:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.