This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes help regarding pie graph Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "help regarding pie graph" Watch "help regarding pie graph" New topic
Author

help regarding pie graph

Aayush Patel
Greenhorn

Joined: Apr 26, 2001
Posts: 21
Can someone help me..i want to make pie graph...like graph in which will be disribute circle according to values
Greg Harris
Ranch Hand

Joined: Apr 12, 2001
Posts: 1012
i wrote a similar program in c++ last year... it was supposed to display a regular clock with an hour hand and a minute hand. i will have to send the code when i get home tonight, but here is the idea:
first draw the circle and then draw a line from the center point to a point on the circumference of the circle. i cannot remember the exact formula at the moment, but it has something to do with the (pi * radius ^2) formula.
if you do not have an answer by the time i get home then i will send you that part of my code.


what?
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Aayush,
You could try something like this:

Hope this helps.
Stephanie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help regarding pie graph
 
Similar Threads
WA #1.....word association
FOP query
JDBC
WA #2 ..... word association
problem with kavachart