I am displaying a Gantt for parking slot Utilization in a particular day. So My Series values will be something like below...
Code: Select all
DateFormat sdf = new SimpleDateFormat("HH:mm");
try{
s1.add(new Task("PS1",new SimpleTimePeriod(sdf.parse("00:00"), sdf.parse("23:59"))));
s1.add(new Task("PS2",new SimpleTimePeriod(sdf.parse("02:00"), sdf.parse("13:20"))));
s1.add(new Task("PS3",new SimpleTimePeriod(sdf.parse("08:00"), sdf.parse("09:20"))));
s1.add(new Task("PS4",new SimpleTimePeriod(sdf.parse("15:00"), sdf.parse("18:45"))));
}catch(ParseException pe){
pe.printStackTrace();
}
Now I need to display the Vehicle registration number on each Gantt. So I 've decided to use Labels. There I have a problem
I am using a LabelGenerator,
Code: Select all
public String generateLabel(CategoryDataset dataset, int series,
int category) {
Number value = dataset.getValue(series, category);
System.out.println(series +","+ category+","+value);
}
Can someone help me to understand the 3rd value in each line?0,0,-19800000
0,1,-19800000
0,2,-19800000
0,3,-19800000
0,4,-19800000
0,5,10560000
0,6,-19800000
0,7,-19800000
0,8,11640000
0,9,-19800000
0,10,-19800000
Also, I need to display the label on the Gantt, currently its displayed above the Gantt. How can I position the label to display the value on the Gantt?
Any help would be appreciated
Thanks
Surendran