Create PieChart using MPAndroidChart Library

Step: 1 ====== Add Dependency to your build.gradle file in android studio Credits to Author : PhilJay GithubLink : https://github.com/PhilJay/MPAndroidChart 1 2 3 4 dependencies { compile ' com . github . PhilJay : MPAndroidChart: v2 . 2.2 ' } Step: 2 ====== create an XML layout with PieChart like below activity_main.xml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" android:gravity= "center" android:orientation= "vertical" tools:context= ".MainActivity" > <com.github.mikephil.charting.charts.PieChart android:id= "@+id/chart1" android:layout_width= "300dp...