My requirement is to create a leave schedule plan in the form of a Gantt chart.. So can we give 2 time intervals for a particular task..
For example, my code snippet is as follows:
public GanttCategoryDataset createDataset() {
final TaskSeries s1 = new TaskSeries("Leave Plan ");
s1.add(new Task("manoj(23354)",
new SimpleTimePeriod(date(1, Calendar.JULY, 2007),
date(31, Calendar.AUGUST, 2007))));
s1.add(new Task("subash (24994)",
new SimpleTimePeriod(date(1, Calendar.JULY, 2007),
date(31, Calendar.AUGUST, 2007))));
s1.add(new Task("subash (24994)",
new SimpleTimePeriod(date(1, Calendar.APRIL, 2007),
date(31, Calendar.MAY, 2007))));
final TaskSeriesCollection collection = new TaskSeriesCollection();
collection.add(s1);
return collection;
}
But i am not getting the two time intervals.. only the first time interval is shown in the gantt chart.. .Hope you understood the problem.. please do give a solution for this...??