Rotating axis labels of 3D Chart

Technote (FAQ)


Question

How do I rotate axis labels of a 3D Chart in IBM ILOG Elixir Enterprise?

Answer

All CartesianChart3D classes use the AxisRenderer3D class to render axes. In order to rotate the axis labels, you can specify a number from -90 to 90 in degrees to the labelRotation property of AxisRenderer3D object.
As documented, this labelRotation property works only if an embedded font is used on the AxisRenderer3D. Thus, you must firstly embed the font in the Flex application. In Flex 4 and later, you must also be sure to set the embedAsCFF CSS property to false because chart controls are MX controls and do not use the Spark text rendering engine.

The following shows a code snippet of the horizontal axis rotated by 45 degrees:

<mx:Style>

@font-face {

src: local("Arial");

fontFamily: Arial;

embedAsCFF: false;

}

</mx:Style>

....
<ilog:horizontalAxisRenderer>
<ilog:AxisRenderer3D fontFamily="Arial" labelRotation="45"/>
</ilog:horizontalAxisRenderer>

Find a complete code sample as attached:

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM ILOG Elixir Enterprise

Software version:

3.0, 3.5

Operating system(s):

Linux, Mac OS, Windows

Reference #:

1507146

Modified date:

2011-09-26

Translate my page

Machine Translation

Content navigation