ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Label Style (PHP)
Posted by Joe on Apr-22-2011 03:22
Hello,
Is there any with SetLabelStyle that I can place the actual label text a certain distance away from the data point. My issue is that I am creating a line chart with different layers, and the labels can become obstructed. Thank you.

  Re: Label Style (PHP)
Posted by Peter Kwan on Apr-22-2011 09:34
Hi Joe,

You can use Box.setPos to put the label a certain distance away from the default position. The default position is the top center of the data point representation, which is configurable by using TextBox.setAlignment.

For example, in PHP 5:

$t = $layer->setDataLabelStyle("arial.ttf", 8, 0x000000);
$t->setPos(0, -10); //put the label 10 pixels higher than the default position

Hope this can help.

Regards
Peter Kwan