標籤:
Android圖表庫的說明:
目前android的圖表庫眾多,選擇一個適合自己使用的就顯得非常重要,根據功能和需求,可以選擇已有的成熟的圖表庫,也可以自己實現,經過對比各圖表庫的功能和特點,目前得出:
如果是比較簡單的圖表曲線,可以自己實現,或者參考graphview圖表庫來寫,代碼量比較少,實現簡單。
如果是比較複雜的圖表曲線,可以採用MPAndroidChart這個庫來完成,這個庫的功能效果還是蠻好的,而且提供各種動畫來展現圖表,具體說明見下連結:
http://www.tuicool.com/articles/yY3uieE
視頻示範見下連結
https://www.youtube.com/watch?v=ufaK_Hd6BpI
見下:
https://github.com/PhilJay/MPAndroidChart/releases
目前版本為2.0.7
參考文檔見下
https://github.com/PhilJay/MPAndroidChart/tree/v2.0.7
關於該項目的issue見下:
https://github.com/PhilJay/MPAndroidChart/issues
關於該項目的使用和介紹見下:
https://github.com/PhilJay/MPAndroidChart/wiki
關於android可視化組件的對比可以參考如下連結:
http://www.tuicool.com/articles/uQzUjq
該文章說的較為詳細,對比了很多圖表庫的特點
此外還有其他優秀的圖表庫,比如
1、Androidplot
http://androidplot.com/
2、hellocharts-android
http://jcodecraeer.com/a/anzhuokaifa/androidkaifa/2014/1107/1930.html
http://jcodecraeer.com/a/opensource/2014/1107/1931.html
3、afreechart
http://afreechart.googlecode.com/svn/doc/screenshot/index.html
另外還有很多其他圖表庫,比如:
desCharts
https://github.com/bradipao/desCharts
XCL-Charts
國人出品,圖表控制項,種類很多
https://github.com/xcltapestry/XCL-Charts
Android-Charts
https://github.com/limccn/Android-Charts
https://github.com/HackPlan/AndroidCharts
android圖表庫說明