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 |