ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to draw gantt chart with dependent tasks
Posted by Yellappa on Jul-10-2006 20:59
Hi,
I am yellappa.I need to ask one doubt regarding Gantt charts.
Can I draw gantt chart with multiple dependent tasks by using the Chartdirector component(Vesion 4.0)?

Please reply me.

Thanks and Regards!

Yellappa.

  Re: How to draw gantt chart with dependent tasks
Posted by Peter Kwan on Jul-11-2006 04:05
Attachments:
Hi Yellappa,

I assume you mean to draw a gantt charts with lines joining the bars to represent dependency relationships.

Unluckily, ChartDirector cannot automatically draw dependency lines. You would need to use your own code to draw the lines to join the bars. (ChartDirector allows you to draw your own lines on the chart.)

Currently, I only have an example of doing it in Java. I have attached the example with this message for your reference. (The ChartDirector API in all programming language editions of ChartDirector are almost identical, so it should not be difficult to port this example to other programming langauges.)

Regards
Peter Kwan
gantt_join_java.zip
gantt_join_java.zip

8.49 Kb

  Re: How to draw gantt chart with dependent tasks
Posted by Yellappa on Jul-12-2006 13:13
Attachments:
Hi Peter,
Thank  you so much for your reply.The information & code sent by you is useful for me.

How do i differentiate Root tasks and its sub tasks in the Gantt chart?Is there any possibility to differentiate Root tasks and its sub tasks.

I have attached one sample gantt chart woth Root Tasks and sub tasks.

Regards!
Yellappa.

Peter Kwan wrote:
> Hi Yellappa,
>
> I assume you mean to draw a gantt charts with lines joining the bars to represent dependency relationships.
>
> Unluckily, ChartDirector cannot automatically draw dependency lines. You would need to use your own code to draw the lines to join the bars. (ChartDirector allows you to draw your own lines on the chart.)
>
> Currently, I only have an example of doing it in Java. I have attached the example with this message for your reference. (The ChartDirector API in all programming language editions of ChartDirector are almost identical, so it should not be difficult to port this example to other programming langauges.)
>
> Regards
> Peter Kwan
sample.gif

  Re: How to draw gantt chart with dependent tasks
Posted by Peter Kwan on Jul-12-2006 15:57
Hi Yellappa,

I suggest you may simply draw a longer bar using different colors, widths or styles to mean root tasks. For example, you may draw a thinner bar and as black to mean a root task. You may also add downwards pointing triangles or other shapes you like at the end points of the bars.

The gantt chart sample code that comes with ChartDirector demonstrates how to draw bars of different colors, widths and styles (eg. bars can fill with a pattern instead of a solid color). It also contains an example of putting arbitrary symbols as arbitrary locations of the bars.

Hope this can help.

Regards
Peter Kwan

  Re: How to draw gantt chart with dependent tasks
Posted by Yellappa on Jul-14-2006 19:10
Hi Peter,
Thanks a lot.Your information is helpful for me.

Regards!
Yellappa.

Peter Kwan wrote:
> Hi Yellappa,
>
> I suggest you may simply draw a longer bar using different colors, widths or styles to mean root tasks. For example, you may draw a thinner bar and as black to mean a root task. You may also add downwards pointing triangles or other shapes you like at the end points of the bars.
>
> The gantt chart sample code that comes with ChartDirector demonstrates how to draw bars of different colors, widths and styles (eg. bars can fill with a pattern instead of a solid color). It also contains an example of putting arbitrary symbols as arbitrary locations of the bars.
>
> Hope this can help.
>
> Regards
> Peter Kwan