In the project to use pie chart and line chart to represent the data, re-build the wheel is not our style, first understand the more popular open source chart control. The survey found three reputable open source projects, which are Mpandroidchart, Achartengine, Holographlibrary. Since the achartengine source was stacked on the Code.google, it was first abandoned and the main research was on the other two projects on GitHub.
Holographlibrary
Project Address: Https://github.com/Androguide/HoloGraphLibrary
Introduction: This is a very simple chart control, the source code in the amount of about 3,000 lines. Simple to use, the project comes with sample as a guide to use. As follows:
Mpandroidchart
Project Address: Https://github.com/PhilJay/MPAndroidChart
Description: More complex and powerful than Holo, with a code volume of around 40,000 lines. But with the example of a good help, we are not difficult to use. The pie chart has a stunning loading animation, which is recommended if the interface requires high interactivity. As follows:
Since all two projects have been developed using as, for many students who use eclipse, I have made lib a jar package and provided the Eclipse demo in:
http://download.csdn.net/detail/lincyang/8517179
Android 20: Two open-source chart/Report controls