File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes display data in pie chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "display data in pie chart" Watch "display data in pie chart" New topic

display data in pie chart

rosy Jovita
Ranch Hand

Joined: Jan 05, 2010
Posts: 45
HI all,

i have a collection of data and i would like to display it in a pie chart.
anyone have idea how to do that? thanks
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Do think that perhaps some more context would be helpful?

[Asking smart questions] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The JFreeChart library can generate pie charts (and all other kinds of charts).
rosy Jovita
Ranch Hand

Joined: Jan 05, 2010
Posts: 45
thanks ulf, i'll try that.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46378
You can also use methods of the Graphics class; this one looks promising.

But that sounds more like a Swing question, so I shall move this thread to our GUIs forum.
I agree. Here's the link:
subject: display data in pie chart
It's not a secret anymore!