|
setFontAngle |
Posted by seafree on Jun-19-2014 01:47 |
|
I need change Sets the rotation angle and layout direction of the text, can you help me please:
my $c = new XYChart(540, 375);
$c->xAxis()->TextBox.setFontAngle(90);
What is the correct form? |
Re: setFontAngle |
Posted by seafree on Jun-19-2014 03:03 |
|
Sorry, I forgot tell my development enviroment:
Os: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Languaje: Perl (cgi-linux)
ChartDirector Ver 4.1 |
Re: setFontAngle |
Posted by seafree on Jun-19-2014 03:06 |
|
Sorry, I forgot tould you:
Development Enviroment:
Os: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Languaje: This is perl, v5.8.8 (cgi-linux)
ChartDirector Ver 4.1 |
Re: setFontAngle |
Posted by Peter Kwan on Jun-19-2014 23:28 |
|
Hi seafree,
There is an example called "Trend Line Chart" in ChartDirector that shows how to rotate the
x-axis labels. for the rotated. See:
http://www.advsofteng.com/doc/cdperl.htm#trendline.htm
In brief, if you are using a label based x-axis (the x-axis is configured with Axis.setLabels),
you may use:
$c->xAxis()->setLabels($labels)->setFontAngle(90);
Alternatively, you may specify the rotation angle in Axis.setLabelStyle, like:
#Arial Bold 8pt black (0x000000) rotated by 90 degrees
$c->xAxis()-.setLabelStyle("arialbd.ttf", 8, 0x000000, 90);
Hope this can help.
Regards
Peter Kwan |
Re: setFontAngle |
Posted by seafree on Jun-20-2014 00:29 |
|
Thats great Peter!!!, thank a lot! |
|