I am stuck with the Gantt Chart of JFreeChart. I would like to use an unlimited number of TaskSeries but not be forced to use all of them for all my tasks.
For example, I would like my task 1 to have only one bar (ie. be attached to only one TaskSeries let's say "toto")
and I would like my task 2 to have 4 bars (ie. be bind to 4 TaskSeries : "toto" and 3 others....)
I was trying to do something like that :
Code: Select all
TaskSeries serieCurrent = new TaskSeries("Current Projects");
TaskSeries seriePotential = new TaskSeries("Current Potential");
serieCurrent.add(new Task("Proj 1", dev, live));
serieCurrent.add(new Task("Proj 2", dev, live));
seriePotential.add(new Task("Proj 3", dev, live));
serieCurrent.add(new Task("Proj 4", dev, live));
seriePotential.add(new Task("Proj 4", dev, live));
collection.add(serieCurrent );
collection.add(seriePotential);
I would like to have the possibility to customize if my task has one, two, three... bars.
Is this possible ?
Thanks a lot !