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 ?
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.
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.
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:
afreechart is based on jfreechart. License: LGPL Version: 0.0.4
AChartEngine
License: Apache
Version: 1.2.0
Maven: yes. (custom repo?)
AndroidPlot License: Apache Version: 0.6.0 Maven: yes
GraphView
License: Apache?
Version: ?
Maven: ?
I've found not so much about it. But it seems to be free.
DroidCharts License: LGPL Version: r2? Maven: ?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With