在 Android 应用程序中显示饼图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21495302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:39:31  来源:igfitidea点击:

Show Pie chart in Android Application

androidpie-chart

提问by Harshal Kalavadiya

I want to show pie chart in my android application like below:

我想在我的 android 应用程序中显示饼图,如下所示:

Pie chart

饼形图

So any one idea about this how can I achieve this? If any library for that then please suggest me.

那么关于这一点的任何想法我怎样才能实现这一目标?如果有任何图书馆,那么请建议我。

Thank in advance.

预先感谢。

回答by Jigar Pandya

In order to show different types of chart,you can use AchartEngine library available in Android or Google charts API here

为了显示不同类型的图表,您可以在此处使用 Android 或 Google 图表 API 中提供的 AchartEngine 库

Kindly refer to thislink for more information.there are also several demos available on internet.

请参阅链接了解更多信息。互联网上还有几个演示。

You need to do litle bit customisation according to your need. :)

你需要根据你的需要做一点点定制。:)

You can ask if you have any furher queries!!

有什么问题可以再问!!

回答by Vaibhav Agarwal

Here are some useful libraries AchartEngine, AndroidPlot, charts4j, aicharts, TeeChart, Orson Charts, Holograph Library

下面是一些有用的库AchartEngineAndroidPlotcharts4jaicharts于TeeChart奥森图表全息图书馆

Some of these are paid and available as sample demo and some are available for free use. you can use them according to your requirement.

其中一些是付费的,可作为示例演示提供,而另一些则可免费使用。您可以根据需要使用它们。

The implementation in the answers will be helpful to you , you can get idea about it through the posts

答案中的实施将对您有所帮助,您可以通过帖子了解它

Link 0

链接 0

Link 1

链接 1

Link 2

链接 2

Link 3

链接 3

3D Pie Chart

3D 饼图

回答by Aniket Kapse

You can use Google Charts API which is quite easy to embed

您可以使用非常容易嵌入的 Google Charts API

Google Pie chart

谷歌饼图

If you want to generate the chart statically on the device you have several third party libraries that can do that for you:

如果您想在设备上静态生成图表,您有几个第三方库可以为您执行此操作:

AchartEngine

图表引擎

AndroidPlot

安卓绘图

ChartDroid

图表机器人