File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Applets
Bookmark "help regarding pie graph" Watch "help regarding pie graph" New topic

help regarding pie graph

Aayush Patel

Joined: Apr 26, 2001
Posts: 21
Can someone help me..i want to make pie 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.

Stephanie Grasson
Ranch Hand

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

Hope this helps.
I agree. Here's the link:
subject: help regarding pie graph
It's not a secret anymore!