Hi Markus,
The code is like (in C#/Java);
double[] xData = ....;
double[] yData = ....;
double[] zData = ....;
ScatterLayer layer = c.addScatterLayer(xData, yData, ......);
layer.addExtraField(zData);
// display the extra field as the data label
layer.setDataLabelFormat("{field0}");
// You can position the labels using Center, Left, Right, Top, Bottom ... as the alignment
layer.setDataLabelStyle("arialbd.ttf", 10, 0x000000).setAlignment(Chart.Left);
Hope this can help.
Regards
Peter Kwan |