3 Replies Latest reply on Jun 8, 2009 11:27 PM by _Natasha_

    How to rotate long labels?

    glen08 Level 1

      Here is my code to rotate labels of date in the format of  "2008-12-31":

       

      <!-- horizontal axis -->

      <mx:horizontalAxis>
             <mx:CategoryAxis id="ca" title="" dataProvider="{xyzArrayCollection}" categoryField="Date"/>

      </mx:horizontalAxis>

       

      <!-- horizontal axis renderer -->
      <mx:horizontalAxisRenderers>
             <mx:AxisRenderer axis="{ca}" canDropLabels="true" labelRotation="-90"/>
      </mx:horizontalAxisRenderers>

       

      The labels are not rotated! Is this because the labels are too long?