Lynerd Lynerd - 2 months ago 13
Android Question

Android - How to display BarGraph in Android

is it possible to display a

Bar Graph
in android?, like displaying two sets of data using a
Bar Graph
.
is there any libraries for this?, hope you can help me, thanks

Answer

is it possible to display a Bar Graph in android?

Yes, it is possible.

like displaying two sets of data using a Bar Graph. is there any libraries for this?

Yes, use MPAndroidChart library for Bar Graph.

check link of MPAndroidChart.

You can generate BarGraph as in below image

enter image description here

enter image description here


How to use this library in Android Studio:

Add the following to your build.gradle:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.PhilJay:MPAndroidChart:v2.2.0'
}
Comments