Hi Haim,
For #1, in ChartDirector 5.1, there is a CDML attribute "edgeColor" that can be used to set the border color of the text. You may also use the "margin" attribute to set the margin between the border and the text. For example:
<*block,edgeColor=000000,margin=3*>XXXXX<*/*>
Another method is to use Layer.addCustomDataLabel to add a custom data label to a data point as a separate TextBox. You can then set the TextBox border. It is like:
$t = $layer->addCustomDataLabel(.....);
$t->setBackground(Transparent, 0x000000);
For #2, I can think of several methods. The simplest one I can think of is to use a y-zone color as the label color. It is like:
$c->yAxis->setLabelStyle("arialbd.ttf", 8, $c-yZoneColor(0, 0xff0000, 0x000000));
However, the above will make the 0 digit half red, and half black. So we need to use addMark to force it to black:
$c->yAxis->addMark(0, -1, "0")->setMarkColor(0xcccccc, 0x000000, 0x000000);
Hope this can help.
Regards
Peter Kwan |