Hi Kris,
You may use CDML to control the color of individual label (and even part of the label). (You may look for CDML in the ChartDirector documentation index).
For example:
//default color is red
myLayer.setDataLabelStyle("Arial", 10, 0xff3333);
//set some labels to green
for (int i = 0; i < labels.length; ++i) {
if (label[i].equalsIgnorecase("teststring"))
labels[i] = "<*color=00CC00*>" + labels[i];
}
Hope this can help.
Regards
Peter Kwan |