Android - 如何在Android中显示BarGraph [英] Android - How to display BarGraph in Android

查看:246
本文介绍了Android - 如何在Android中显示BarGraph的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在android?中显示条形图,例如使用条形图显示两组数据
是否有任何这样的库?,希望你能帮助我,谢谢

解决方案


是否可以在android中显示条形图?


是的,这是可能的。


就像使用条形图显示两组数据一样。

是的,对于条形图使用MPAndroidChart库。



检查








如何使用这个库在Android Studio中: b
$ b

将以下内容添加到您的build.gradle:

 存储库{
maven {urlhttps://jitpack.io}
}

依赖关系{
编译'com.github.PhilJay:MPA ndroidChart:v2.2.0'
}


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

解决方案

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


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'
}

这篇关于Android - 如何在Android中显示BarGraph的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆