|
how to addCustomDataLabel below the LineLayer |
Posted by Nguyen Khang on Apr-06-2012 18:57 |
|
Hi all,
LineLayer lines = c.addLineLayer2();
lines.addDataSet(data, 0xFF9900);
lines.addCustomDataLabel(0, 0, "xxxx", "Arial", 8, 0x3D5AA3, 0);
the label above the line.
how to addCustomDataLabel below the Line? |
Re: how to addCustomDataLabel below the LineLayer |
Posted by Peter Kwan on Apr-07-2012 00:19 |
|
Hi Nguyen,
You may use TextBox.setAlignment to control the position of the label relative to the data point. For example:
ChartDirector.TextBox t = lines.addCustomDataLabel(0, 0, "xxxx", "Arial", 8, 0x3D5AA3, 0);
t.setAlignment(Chart.Top);
Hope this can help.
Regards
Peter Kwan |
|