i understood that i need some special fonts to rotate the label. can
you specify some place from where i can get these fonts. can i use the
basic arial font type for it.
any link which clarifies more on this topic will be appreciated.

On Feb 5, 9:21 am, Varun Bajaj <vb.j...@gmail.com> wrote:
> dear akshar
>
> Your answer is within your Q itself. Label rotation is done with specific
> font type only same as print. Hope you are understanding what i am trying to
> say :)
>
> Varun Bajaj
>
> On Thu, Feb 4, 2010 at 5:13 PM, Akshar <akshar.k...@gmail.com> wrote:
> > I want to rotate the chart axis label. i have used the sample code
> > provided by adobe @
> >http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_...
> > but i am not able to achieve the rotation.
> > I have removed following lines in the sample code because i do not
> > have the font ttf:-
>
> > ------------------------------------------------------------------------------------------------------------
> > <mx:Style>
> >     @font-face{
> >        src: url("../assets/MyriadWebPro.ttf");
> >        fontFamily: myMyriad;
> >     }
>
> >     ColumnChart {
> >        fontFamily: myMyriad;
> >        fontSize: 20;
> >     }
> >  </mx:Style>
>
> > ------------------------------------------------------------------------------------------------------------
>
> > any help in this direction will be helpful.
>
> > my file is :-
>
> > <?xml version="1.0"?>
> > <!-- charts/RotateAxisLabels.mxml -->
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
> >  <mx:Script><![CDATA[
> >  import mx.collections.ArrayCollection;
> >  [Bindable]
> >  public var expenses:ArrayCollection = new ArrayCollection([
> >     {Month: "Jan", Profit: 2000, Expenses: 1500},
> >     {Month: "Feb", Profit: 1000, Expenses: 200},
> >     {Month: "Mar", Profit: 1500, Expenses: 500}
> >  ]);
> >  ]]></mx:Script>
>
> >  <mx:Panel title="Rotated Axis Labels">
> >     <mx:ColumnChart id="column" dataProvider="{expenses}"
> > showDataTips="true">
> >        <mx:horizontalAxis>
> >           <mx:CategoryAxis
> >                dataProvider="{expenses}"
> >                categoryField="Month"
> >                title="FY 2006"
> >                id="a1"
> >           />
> >        </mx:horizontalAxis>
>
> >        <mx:horizontalAxisRenderers>
> >           <mx:AxisRenderer labelRotation="45" axis="{a1}"/>
> >        </mx:horizontalAxisRenderers>
> >        <mx:verticalAxisRenderers>
> >           <mx:AxisRenderer labelRotation="45" axis="{a1}"/>
> >        </mx:verticalAxisRenderers>
>
> >        <mx:series>
> >           <mx:ColumnSeries
> >                xField="Month"
> >                yField="Profit"
> >               displayName="Profit"
> >           />
> >           <mx:ColumnSeries
> >                xField="Month"
> >                yField="Expenses"
> >               displayName="Expenses"
> >           />
> >        </mx:series>
> >     </mx:ColumnChart>
> >     <mx:Legend dataProvider="{column}"/>
> >  </mx:Panel>
> > </mx:Application>
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to flex_in...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_in...@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to