Use a labelFunction, for example:

 

private function currencyFormat(value:Number,prevValue:Number,axis:Object):String {

            return cf.format(value);

        }

 

<mx:CurrencyFormatter id="cf"/>

 

In graph….

 

<mx:verticalAxis>

            <mx:LinearAxis labelFunction="currencyFormat" title="Whatever"/>

</mx:verticalAxis>

 

-----------------------------

Brian O'Connor

Adobe Consulting

Email: [EMAIL PROTECTED]

Office: 617-219-2205

Mobile: 617-306-3713

8888/   \8888®
888/     \888  
88/   /   \88
8/   /8\   \8
/   /888\   \
       
\8\


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Thursday, March 02, 2006 2:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 line chart and vertical axis

 

hi all

i have a line chart that i am feeding a fair bit of info into. all good. the problem is that the vertical axis displays stuff like
7590.9999999999999999995 as a refpoint.
now i looked at the IAxis interface and it has a getUnitSize method, no setter for it (and no documentation yet), and i assume that this is the function or value that has to change to round  the values displayed on the yaxis? if this is by default == 1(which i assume otherwise the deault at the moment would be 0.000000000000005), then something else is coming into play here. any ideas on how i can get the vertical axis to display digestible information?

Thanks
j



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to