Gantt Chart - customisation issues

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
xadi
Posts: 1
Joined: Wed Jun 11, 2014 1:03 pm
antibot: No, of course not.

Gantt Chart - customisation issues

Post by xadi » Wed Jun 11, 2014 1:18 pm

Hello,

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);
The issue with this Chart is that when my Task doesn't have one bar in each serie, there is a gap, waiting for me to fill one...
I would like to have the possibility to customize if my task has one, two, three... bars.

Is this possible ?

Thanks a lot !

Locked