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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -