Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show pie chart in android

I want to build an app in where I want to show memory and cpu usage map in a pie chart . However I have no idea about how to implement this .

I have seen the following question :

How to display the 3D pie chart asynchronously in android?

But I could not resolve this issue . What can I do ? Guys , can u help me in this regard ?

like image 670
osimer pothe Avatar asked Mar 22 '13 02:03

osimer pothe


People also ask

How do I enable a pie chart?

Click Insert > Chart > Pie, and then pick the pie chart you want to add to your slide. In the spreadsheet that appears, replace the placeholder data with your own information. For more information about how to arrange pie chart data, see Data for pie charts. When you've finished, close the spreadsheet.

Does Google have a pie chart maker?

Click “Edit Chart” to open the Chart Editor sidebar. On the Setup tab at the top of the sidebar, click the Chart Type drop-down box. Go down to the Pie section and select the pie chart style you want to use. You can pick a Pie Chart, Doughnut Chart, or 3D Pie Chart.


2 Answers

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.

like image 188
drdrej Avatar answered Oct 06 '22 01:10

drdrej


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

like image 31
stinepike Avatar answered Oct 06 '22 00:10

stinepike