Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Pie Chart.[URGENT]

Pie Chart.[URGENT]

Problems with Canvas, OpenGL, etc...

Pie Chart.[URGENT]

Postby gautam_bajaj7 » Sat Nov 20, 2010 1:15 am

I want to make a piechart with the % of components known...i cant find a simple working code for it..plz help..
for ex
A=20%
B=30%
c=50%
output is a piechart for A,B,C
And i dont have internet connection so that i can use...google code.
and also i have installed achartengine JAR file...ie library..
plz help!!
gautam_bajaj7
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Nov 20, 2010 12:59 am

Top

Re: Pie Chart.[URGENT]

Postby thecoolbrian » Thu Dec 02, 2010 6:07 am

http://developer.android.com/reference/ ... Shape.html

this is exactly what your looking for as easy as pie lol

So
just like

so something like this

import android.graphics.drawable.shapes.ArcShape
.......
public void ConstructePieChart(A,B,C){
angle1 = A * 3.6;
angle1 = B * 3.6;
angle1 = C * 3.6;
ArcShape Arc1 = new ArcShape(0, angle1);
ArcShape Arc2 = new ArcShape(angle1, angle2);
ArcShape Arc3 = new ArcShape(angle2, angle3);

//and then i thing you do something like this
Arc1.draw(Canvas , Paint);
Arc2.draw(Canvas , Paint);
Arc3.draw(Canvas , Paint);
}
hope that helps :) :D
thecoolbrian
Freshman
Freshman
 
Posts: 6
Joined: Sat Oct 09, 2010 5:06 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 4 guests