Gantt - Additional Features
Gantt - Additional Features
The JFreeChart source code is great.
Recently I needed additional features on my Gantt Charts so I modified some JFreeChart’s files, which was extremely simple.
With these modifications you can add Summary Tasks, Milestones/Deliverables, and dependencies between Tasks and Milestones/Deliverables.
You can see an example on my blog at Gantt Charts with JFreeChart.
Of course the changes I made could be a lot better if I just have more time…
Please feel free to use these modifications as you please, or include them in the JFreeChart repository.
Regards,
Samuel
Recently I needed additional features on my Gantt Charts so I modified some JFreeChart’s files, which was extremely simple.
With these modifications you can add Summary Tasks, Milestones/Deliverables, and dependencies between Tasks and Milestones/Deliverables.
You can see an example on my blog at Gantt Charts with JFreeChart.
Of course the changes I made could be a lot better if I just have more time…
Please feel free to use these modifications as you please, or include them in the JFreeChart repository.
Regards,
Samuel
Last edited by Silenius on Wed Sep 28, 2011 1:34 am, edited 3 times in total.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Looks really nice! I'm hoping to publish 1.0.3 today, so I won't get a chance to look at this straight away, but I will come back to it (please remind me if I seem to have forgotten - I'm always stretched this way and that).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Here is an example:

Diff files:
BarRenderer.java
GanttRenderer.java
GanttCategoryDataset.java
Task.java
TaskSeriesCollection.java
LineAndShapeGanttRenderer.java
Hope it can help...

Diff files:
BarRenderer.java
GanttRenderer.java
GanttCategoryDataset.java
Task.java
TaskSeriesCollection.java
LineAndShapeGanttRenderer.java

Hope it can help...
Last edited by Silenius on Wed Sep 28, 2011 1:36 am, edited 6 times in total.
Could you please post an example
Could you please post an example?
And the java source files instead of the pfs?
Thank you.
Patrick.
And the java source files instead of the pfs?
Thank you.
Patrick.
quote="jcantonio"]
Did anyone succeedeed in making the sample code run?
[/quote]
Yes, i have finally created the gantt chart with Summary tasks, subtasks, milestones. It all worked perfectly. But however i am still stucked at the Dependency lines that connect the subtasks together.
Going thru the LineAndShapeGanttRenderer class, i get confused as to what method in there that displays this dependency lines. Anyone taken a look at that?
Thanks
Did anyone succeedeed in making the sample code run?

Yes, i have finally created the gantt chart with Summary tasks, subtasks, milestones. It all worked perfectly. But however i am still stucked at the Dependency lines that connect the subtasks together.
Going thru the LineAndShapeGanttRenderer class, i get confused as to what method in there that displays this dependency lines. Anyone taken a look at that?
Thanks
Sorry it was a while ago, I don't use/have it anymore.jblancx wrote:jcantonio wrote:Hello,
I tried to run the sample, but it rendered just like before without subtasks listed nor milestone.
Also the sample does not use the added class LineAndShapeGanttRenderer.java.
which sample did u run and lets see ya source code..
Hallo Takaya, the above classes created by Silenus includes patches for this capability of SummaryTasks, Milestone,SubTasks. I have personally imployed them in my gantt and it works.takaya wrote:Well I am also interested in the Summary tasks and subtask features. Can anyone proovide an example on what is necessary to change in the official release, and how to call these features?
Thanks
Cheers
But regarding the Dependency Lines that connect the subtaks together, i am still not able to do that. Dont know how Silenus did that.
Here is a sample Gantt i generated form the above classes.
https://www.dev.java.net/files/forums/2 ... /Gantt.JPG
Thanks
hallo Silenus,Silenius wrote:Sorry, the example isn't on my blog anymore.
Here are the modifications:
Example:
Hope it can help...
pls can you explain how i can create the dependency lines to connect the subtasks. Please if possible can you attach a sample code of what is generated in your gantt. I find it difficult to generate both SummaryTask and Milestone at the same time. I also need the dependency to connect my subtasks showing when a subtask finish and the other starts.
Please, please help us!!!

