android - Creating Pie chart / progressbar like arc in andorid -


i working on project want show pie chart image added. have searched google , other posts in stackoverflow, not find solution. solution appreciated.

note: suggestions of third-party library welcome. please not suggest mpandroidchart think query can implemented using simpler method.

the pie chart want achieve

you can use library https://github.com/philjay/mpandroidchart achieve this.

add below in xml:

 <com.github.mikephil.charting.charts.piechart     android:id="@+id/chart"     android:layout_width="match_parent"     android:layout_height="match_parent" /> 

in java code:

piechart chart = (piechart) findviewbyid(r.id.chart); 

example code:

https://github.com/philjay/mpandroidchart/blob/master/mpchartexample/src/com/xxmassdeveloper/mpchartexample/piechartactivity.java

there lot of variances available.

another library consider is:

https://github.com/lecho/hellocharts-android

enter image description here


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -