How can I draw something like the circular chart in image below in android :
How to draw pie like chart in Android
Asked Answered
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-android –
Meeks
have you found any solution for this –
Incinerator
How about this libabry.. ? it has pie charts
https://github.com/PhilJay/MPAndroidChart
Documentation is here
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 library –
Libelant
@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 library –
Incinerator
What about proguard etc. @PhilippJahoda Doesn't that remove unused references and classes –
Sapotaceous
how to enable animation om curved part.??for default view animation is working fine but for curved animation is not working! @PhilippJahoda –
Reify
@ParthBhayani use pieChart.setDrawRoundedSlices(true) from MP chart. –
Heterocercal
© 2022 - 2024 — McMap. All rights reserved.