---------- Forwarded message ----------
From: Brian O'Connor <[EMAIL PROTECTED]>
Date: Mar 2, 2006 2:44 PM
Subject: RE: [flexcoders] Flex2 line chart and vertical axis
To: [EMAIL PROTECTED]
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:
[email protected] [mailto:[email protected]]
On Behalf Of Johannes Nel
Sent: Thursday, March 02, 2006
2:21 PM
To: [email protected]
Subject: [flexcoders] Flex2 line
chart and vertical axis
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
|
|
YAHOO! GROUPS LINKS
- Visit your group
"flexcoders"
on the web.
- To unsubscribe from
this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
j:pn
http://www.lennel.org
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

