Two easy options:
 
1) set 'canDropLabels' on your axisRenderer to true.  Then the axis will try to drop the labels instead of making them smaller. Since the axis doesn't generally know anything about the contents of a CategoryAxis, it can't assume that dropping category names won't lose important information. But in your case, since it's time data, it's safe to do so.
 
2) I don't remember off hte top of my head, but you might be able to return null from your labelFunction if you don't want a label displayed.
 
Ely.
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of klumikaze
Sent: Friday, September 08, 2006 11:45 AM
To: [email protected]
Subject: [flexcoders] Any way to define CategoryAxis label spacing?

I'm looking for a way to only display a few CategoryAxis labels
(instead of all of them).

Currently I have a labelFormat function that takes a unix timestamp,
converts it to a shorter, more readable format, and then displays it
on the horizontalAxis of the graph. The problem is that it's a time
series area chart, and there are far too many data points (it ends up
displaying all of the labels with an extremely small font).

For instance, I would like to be able to display only the first,
middle and last labels.

Any ideas would be appreciated.

Thanks,

Brian

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to