How to show pie chart in android

时光毁灭记忆、已成空白 提交于 2019-12-04 02:51:01

To "paint" a graph on android you can use a third-party-lib. All libs supports different types of charts.

There are some graph-libs for Android:

  1. afreechart is based on jfreechart. License: LGPL Version: 0.0.4

  2. AChartEngine
    License: Apache Version: 1.2.0 Maven: yes. (custom repo?)

  3. AndroidPlot License: Apache Version: 0.6.0 Maven: yes

  4. GraphView
    License: Apache? Version: ? Maven: ?

I've found not so much about it. But it seems to be free.

  1. DroidCharts License: LGPL Version: r2? Maven: ?

  2. Chartdroid
    License: Apache Version: 2.0.0 Maven: ?

Or you implements your own :) It's not the perferct answer, but maybe a good hint.

you can use achartengine to create different kinds of charts. For example you can find lots of links like these two

link1, link2

here is another nice example you can look at

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!