I honestly don't remember ;) There are a few factors that determine whether
or not labels will rotate:

- is the font embedded. If it's not, the player can't rotate them anyway, so
don't bother.
- is there an explciit angle set for the labels.
- is there enough room to lay out the labels end to end without rotating, or
scaling the fonts. If that's possible, it's preferred.
- does the axis type suggest dropping labels to make space. Numeric axes
suggest dropping labels, since a user can still interpret the chart
correctly with fewer numeric labels. Category axes, however, don't drop
labels, since you lose information that way. This can be overridden by the
developer, as susan pointed out.
- is there enough room to lay out the labels staggered, without scaling. If
this is possible, it will be preferred.
- how much space will be taken up if the labels are rotated. If it takes up
too much of the total space allocated for the chart, it will have to scale
the labels down. If it has to scale them more than it would have to lay them
out end to end or staggered, it will prefer one of those methods.

All of these factors combine in the decision for how the labels are laid
out. The goal is to have them always appear 'right' without other
intervention by the developer, at whatever size. Often the developer doesn't
know at compile time how much space the chart will have, or how many labels
will be, so having the chart 'do the right thing' should, in theory, be a
big boon. Obviously some designs call for explcicit appearance decisions, so
overrides are provided for each possible choice. But two charts that seem
only slightly different...more or less labels, more or less screen
real-estate, category vs. numeric axis...can end up with a different label
strategy.

Ely.


> -----Original Message-----
> From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 10, 2005 2:38 PM
> To: [email protected]
> Subject: RE: [flexcoders] axis label rotation
> Importance: High
> 
> 
> At 05:20 PM 2/10/2005, you wrote:
> >
> >
> >Flex will determine the most appropriate angle given the 
> number, size, 
> >and spacing of the labels and the size available to the 
> chart. But you 
> >can set an explicit value if you know you want a specific rotation, 
> >regardless of size etc. If Jeff's suggestion got your angles 
> >rendering, then you can explicitly set the labelRotation (I think 
> >that's what it's called, but it's something with the word 
> rotation in 
> >it...you can find it in the docs) property on the 
> axisRenderer to whatever degree value you want.
> 
> Thanks - Susan Chang made that suggestion and that's what I'm 
> using. I'm wondering - in your tutorial, which was where I 
> started, were the labels supposed to rotate without 
> explicitly setting a labelRotation value?
> 
> - Tom
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 


Reply via email to