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

Message ListMessage List     Post MessagePost Message

  How to add labels for both start date and end date on gantt chart?
Posted by hjlee on Sep-22-2014 13:07
Attachments:
Hi,
I want to make a gantt chart that has both a start date label and a end date label.
how to make this gantt chart?

I attached example image.
gantt.png

  Re: How to add labels for both start date and end date on gantt chart?
Posted by Peter Kwan on Sep-23-2014 01:57
Hi hjlee,

One simple method is to add a layer for the start labels and a layer for the end labels. It is
like (in Java/C#):

Layer startLabelLayer = c.addLineLayer(myStartDates, Chart.Transparent);
startLabelLayer.setDataLabelFormat("{value|m/dd"}");
startLabelLayer.setDataLabelStyle("Arial", 15).setAlignment(Chart.Right);

Layer endLabelLayer = c.addLineLayer(myEndDates, Chart.Transparent);
endLabelLayer .setDataLabelFormat("{value|m/dd"}");
endLabelLayer .setDataLabelStyle("Arial", 15).setAlignment(Chart.Left);

..... put the addBoxWhiskerLayer for the gantt chart here .....

Hope this can help.

Regards
Peter Kwan