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.
Ely.
From: Steiner, Jeff [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 1:50 PM
To: [email protected]
Subject: RE: [flexcoders] axis label rotationThis may sound goofy. Try increasing the number of entries across the horizontal axis.I have an app that angles the names of people across the bottom axis, but only after I reach a certain number of people. If you can, try doing that and see if it does angle the entries.Jeff
From: Susan Chang [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 1:30 PM
To: [email protected]
Subject: RE: [flexcoders] axis label rotationThe syntax looks correct. What OS are you on? Have you tried another font? Can you attach a screenshot of what you see?Thanks!Susan
At 02:23 PM 2/10/2005, you wrote:
From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 10, 2005 12:49 PM
To: [email protected]
Subject: RE: [flexcoders] axis label rotation
Try setting canStagger="false" and canDropLabels="false" on the
horizontalAxisRenderer. Do they rotate now? If not, you can directly set
labelRotation on the horizontalAxisRenderer to "45" or something and it will
force a rotation on the labels.
Hi Susan -
Thanks for the suggestions. I tried them all, still doesn't work. I wonder if it's the font embedding that's not working correctly.
In a style tag, I've set it up as follows:
@font-face {font-family: chartLabelFont;
src: local("Arial");
}
ColumnChart {font-family: chartLabelFont; gridLinesStyle: vBarGridlines; verticalAxisStyle: linedNumericAxis; horizontalAxisStyle: hangingCategoryAxis;
}
Can you seen any problem there - or do you have any other suggestions?
- Tom

