Gantt Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Divya

Gantt Chart

Post by Divya » Wed Nov 27, 2002 9:37 pm

Hello,

I have to create a Gantt chart with time as xaxis. i saw the demo it displays month in xaxis.as i'm new to java and new jFreechart,

Object task1 = new String("Write Proposal");

s1.add(task1, new TimeAllocation(date(1, Calendar.APRIL, 2001),
date(5, Calendar.APRIL, 2001)));

i want to provide a number value for the task1 and
for TimeAllocation how can i provide hour,minute,seconds instead of
day,month,year.

Thanks ,
Divya.

David Gilbert

Re: Gantt Chart

Post by David Gilbert » Fri Nov 29, 2002 6:45 pm

The TimeAllocation class will work with any instances of java.util.Date. I just created the date(day, month, year) method as a convenience. You can create your dates using hours, minutes, seconds or milliseconds if you want to...

Regards,

DG

Divya

Re: Gantt Chart

Post by Divya » Tue Dec 03, 2002 12:26 am

Thanks that is working.

-Divya.

Locked