This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "display data in pie chart" Watch "display data in pie chart" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Do think that perhaps some more context would be helpful?


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

Joined: Mar 22, 2005
Posts: 41599
    
  55
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
Sheriff

Joined: Oct 13, 2005
Posts: 38472
    
  23
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.
 
wood burning stoves
 
subject: display data in pie chart