File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Barchart representation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Barchart representation" Watch "Barchart representation" New topic

Barchart representation

Vibha Verma
Ranch Hand

Joined: Jan 15, 2002
Posts: 107
Could anyone please help me in representing my data in barchart form using Java, which calsses can I use for that.
Wirianto Djunaidi
Ranch Hand

Joined: Mar 20, 2001
Posts: 210

Well, the easiest way probably to use an existing charting/graphics library. There's a bunch of them at
If you want to make your own, than you can
either use java.awt.Canvas or make your own
Barchart object extending JComponent.
Ashish Hareet
Ranch Hand

Joined: Jul 14, 2001
Posts: 375
Hi Vibha,
Have a look at JFreeChart.
Ashish Hareet
It is sorta covered in the JavaRanch Style Guide.
subject: Barchart representation