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

Message ListMessage List     Post MessagePost Message

  Date display at both sides of the sections in a Gantt chart
Posted by hafid on Sep-11-2012 15:23
Attachments:
Hello!

I need to know if it's possible to display a date sestion's sides in a gantt chart:

thanks for your help.
gantt.png

  Re: Date display at both sides of the sections in a Gantt chart
Posted by hafid on Sep-11-2012 15:27
Attachments:
Sorry I made an error in image: it's like this:
gantt22.png

  Re: Date display at both sides of the sections in a Gantt chart
Posted by Peter Kwan on Sep-12-2012 02:10
Hi hafid,

You can put plot a transparent scatter layer using the start dates and then associate the labels with the transparent scatter symbols. This creates the labels at the start dates. You may repeat the above with the end dates to create the labels at the end dates.

For example, in PHP:

#add labels at the left side of the start dates in 10pts Arial Bold font style
$layer = $c->addScatterLayer(null, $startDates, "", SquareSymbol, 1, Transparent, Transparent);
$t = $layer->setDataLabelStyle("arialbd.ttf", 10);
$t->setAlignment(Right);

#add labels at the right side of the end dates in 10pts Arial Bold font style
$layer = $c->addScatterLayer(null, $endDates, "", SquareSymbol, 1, Transparent, Transparent);
$t = $layer->setDataLabelStyle("arialbd.ttf", 10);
$t->setAlignment(Left);

Hope this can help.

Regards
Peter Kwan