aspose file tools*
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

Win a copy of Spring in Action this week in the Spring forum!
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: 61421

Do think that perhaps some more context would be helpful?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42277
The JFreeChart library can generate pie charts (and all other kinds of charts).

Ping & DNS - my free Android networking tools app
rosy Jovita
Ranch Hand

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

Joined: Oct 13, 2005
Posts: 39408
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