• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Solution for Plotting 3D charts in the Android Application

softy342

Lurker
Hi,
This is my first post in this forum.First of all thanks to the admin for giving me the opportunity to write something here.From past few days I have been googling a lot related tp "plotting the 3D charts(pie,histograms,graphs,etc) for android application" based on the application data .I came across these top most searches and suggestion :
-achartengine - achartengine.org - News
download the jar file from here --> Downloads - achartengine - Charting library for Android - Google Project Hosting
-androidplot - Home - AndroidPlot

-aichart --> ArtfulBits > Products > Android > aiCharts > Samples Pie Chart Type

I used the first one - achartengine .I imported the jar file from the Project>properties>java build path >add jar file and then used the below code to plot the pie chart

.here is my code for it

CategorySeries categorySeries = new CategorySeries("Fruit Chart");
int[] colors = new int[] { Color.RED, Color.YELLOW, Color.BLUE };
DefaultRenderer renderer = buildCategoryRenderer(colors);

categorySeries = new CategorySeries("Fruit Chart");
categorySeries.add("Apples ",23);
categorySeries.add("Bananas", 57);
categorySeries.add("Strawberries", 100 );

Intent achartIntent = ChartFactory.getPieChartIntent(this, categorySeries, renderer,"Fruit Chart");
startActivity(achartIntent);

protected DefaultRenderer buildCategoryRenderer(int[] colors) {
DefaultRenderer renderer = new DefaultRenderer();
for (int color : colors) {
SimpleSeriesRenderer r = new SimpleSeriesRenderer();
r.setColor(color);
renderer.addSeriesRenderer(r);
}
return renderer;
}


and here is how i got my output.
see the attachment..


It looks neat but alass it looks planar and 2Dd.


Android plot is also good but the page says it doesnt supports the PIE chart so I didnt try it.



What i want my charts to come in this shape and style .

see the url(3d look)
pie chart - Google Search


Also it would be good If I can rotate them at my will and invert them upside down.(far loong assumptions..ut still I have hope that one day I will)

So plz if you have any suggestion or plan , plz drop by ,frown,groan, do whatevr you like but conclude this post to the subject of this post..!!
best Rgds,
Softy
 

Attachments

  • Fruit Pie Chart.jpg
    Fruit Pie Chart.jpg
    65.2 KB · Views: 355
Back
Top Bottom