|
Multi-level Gantt chart |
Posted by Scott on Dec-31-2010 16:01 |
|
Is there a way to display parent/child relationships in your chart? I would like to display milestones and then indent all of the related tasks under the milestones.
Thanks,
Scott |
Re: Multi-level Gantt chart |
Posted by Peter Kwan on Jan-01-2011 02:36 |
|
Hi Scott,
You can "indent" the labels by adding leading space characters to the labels and left-align the labels. The easiest way to left-align the labels is to convert the labels to a CDMLTable and set left alignment.
I have attached an example based on the "Multi-Layer Gantt Chart" sample code. The code I used to left-align the labels are (in VB/VBScript):
Set t = c.xAxis().makeLabelTable()
Call t.getStyle().setAlignment(cd.Left)
Call t.getStyle().setBackground(cd.Transparent, cd.Transparent)
I also set some labels to bold (by using CDML such as "<*font=arialbd.ttf*>Market Research"). The indentation is achieved by adding leading space characters, and the bullet is achieved by including the bullet character in the labels.
Hope this can help.
Regards
Peter Kwan
|
|