Gantt - Additional Features

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Silenius
Posts: 4
Joined: Mon Oct 02, 2006 6:32 pm
Contact:

Gantt - Additional Features

Post by Silenius » Fri Nov 17, 2006 12:11 am

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
Last edited by Silenius on Wed Sep 28, 2011 1:34 am, edited 3 times in total.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Fri Nov 17, 2006 8:53 am

Looks good! I hope the improvements make it into the official release.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Fri Nov 17, 2006 10:19 am

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Silenius
Posts: 4
Joined: Mon Oct 02, 2006 6:32 pm
Contact:

Post by Silenius » Sun Dec 31, 2006 11:48 pm

Last edited by Silenius on Wed Sep 28, 2011 1:36 am, edited 6 times in total.

pmgahan
Posts: 6
Joined: Fri Mar 16, 2007 4:58 am

Could you please post an example

Post by pmgahan » Fri Mar 16, 2007 6:41 am

Could you please post an example?
And the java source files instead of the pfs?


Thank you.

Patrick.

brunogh
Posts: 3
Joined: Tue Mar 27, 2007 8:43 pm

Post by brunogh » Tue Mar 27, 2007 8:45 pm

Hi David,

Is it already possible to do what Silenius has done - grantt chart with tasks, subtasks and milestones - with the actual version of JFreeChart?

Thanks,
Bruno
Bruno Cavaler Ghisi

alina
Posts: 1
Joined: Mon Jul 30, 2007 10:03 am

Post by alina » Mon Jul 30, 2007 10:04 am

Any news about this one?

Thanks,
Alina

jcantonio
Posts: 2
Joined: Tue Nov 13, 2007 4:19 pm

Post by jcantonio » Tue Nov 13, 2007 4:22 pm

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.

Did anyone succeedeed in making the sample code run?

Cheers,

JClaude

jblancx
Posts: 24
Joined: Tue Sep 02, 2008 11:27 am
Location: Germany

Post by jblancx » Fri Sep 19, 2008 10:13 am

[quote="jcantonio"]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.. :)

jblancx
Posts: 24
Joined: Tue Sep 02, 2008 11:27 am
Location: Germany

Post by jblancx » Wed Sep 24, 2008 1:55 pm

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

jcantonio
Posts: 2
Joined: Tue Nov 13, 2007 4:19 pm

Post by jcantonio » Thu Sep 25, 2008 4:28 pm

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.. :)
Sorry it was a while ago, I don't use/have it anymore.

takaya
Posts: 2
Joined: Thu Sep 25, 2008 6:14 pm

Post by takaya » Thu Sep 25, 2008 6:21 pm

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

jblancx
Posts: 24
Joined: Tue Sep 02, 2008 11:27 am
Location: Germany

Post by jblancx » Fri Sep 26, 2008 8:19 am

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
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.
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.

Image

https://www.dev.java.net/files/forums/2 ... /Gantt.JPG

Thanks

jblancx
Posts: 24
Joined: Tue Sep 02, 2008 11:27 am
Location: Germany

Post by jblancx » Fri Sep 26, 2008 11:36 am

Silenius wrote:Sorry, the example isn't on my blog anymore.

Here are the modifications:

Example:
Image

Hope it can help...
hallo Silenus,
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!!! :lol: :wink:

takaya
Posts: 2
Joined: Thu Sep 25, 2008 6:14 pm

Post by takaya » Fri Sep 26, 2008 11:53 am

Thanks for the answer. My idea was to download the classes shown in the post and change the ones in the current release 1.0.11 (is it correct?), but the fact is when I click on the link I get only pdf files with the diffs.
Someone knows or can post the real java files?

Thanks
Cheers

Locked