It's not a secret anymore!
The moose likes Other Open Source Projects and the fly likes Drawing graphs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Drawing graphs" Watch "Drawing graphs" New topic

Drawing graphs

Aniket Kedari
Ranch Hand

Joined: Jan 29, 2008
Posts: 30
Hi all,
I am developing an application which will draw graph for conference hall booking. It will be simillar to a gantt chart with little variance.

The image will look like this

Please tell me which API will be convenient to use. Specially I want to draw fragmented lines( to show hall was booked between 1 pm to 2 pm and 3 pm to 4 pm).
Can it be done using gantt chart or timeseries chart in JFreeChart.
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 598

For creating charts in Java you have to use awt which will be too hard to
draw chart.

The easy would be use a third party tool like Jfreechart.

best regards,

Most of the programming problems can't be solved because you don't know what the exact problem is.
Defining your problem correctly leads you to the right solution.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
JFreeChart is a good library, kind of the standard charting package for Java. Other options are JFreeChart2D and OpenChart.
I agree. Here's the link:
subject: Drawing graphs
It's not a secret anymore!