3 Replies Latest reply on Aug 31, 2009 11:47 PM by megharajdeepak

    How to use custom function for formatting the Line Chart Axes?

    megharajdeepak

      Hi...

       

      I'm using a Line chart who's y axis value range from 0 to 50000. This is a number which it gets from it's dataProvider. I want to format this and show it as

       

      $50,000

      $40,000

      $30,000

      $20,000

      $10,000

      $0

       

      instead of

      50000

      40000

      30000

      20000

      10000

      0

       

      Here's my linechart code:

       

      <mx:LineChart id="revTimeLineChart"
                  width="100%" height="100%"
                  showDataTips="true" >
              
                  <mx:horizontalAxis>
                     <mx:CategoryAxis id="lcCatAxis" categoryField="name"/>
                  </mx:horizontalAxis>
                 
                  <mx:series>
                     <mx:LineSeries id="ls" yField="revenue" displayName="Revenue" showDataEffect="{slideIn}"/>      (yField is what I want to format....)
                          
                  </mx:series>

      </mx:LineChart>

       

      Can you please let me know how can this be achieved?

       

      Cheers!

      Deepak