This is a migrated thread and some comments may be shown as answers.

X-Axis text labels rotated 90 cant get size right

3 Answers 360 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jason Finch
Top achievements
Rank 1
Jason Finch asked on 05 Oct 2007, 11:39 PM
I've start to migrate our RadChart pages to RadChart prometheus. All charts are created in codebehind.

For the Properties on the X-Axis text I cannot figure out how to expand the region to accomodate large text labels.

I have large text x-axis labels like "Financial Year 2006/2007" rotated 90 degrees and they are being cropped at about the "Fin" level.

I am changing properties in the namespace radChart.PlotArea.XAxis.Appearance.TextAppearance area.

ie
radChart.PlotArea.XAxis.Appearance.TextAppearance.Height
radChart.PlotArea.XAxis.Appearance.TextAppearance.Width
radChart.PlotArea.XAxis.Appearance.TextAppearance.RotationAngle.

Sometimes with strange results, especially with fills and borders, they don't appear to align correctly with the rotated text.
I've tried adjusting padding and margins as well with little success.

Any clues?






3 Answers, 1 is accepted

Sort by
0
Jason Finch
Top achievements
Rank 1
answered on 05 Oct 2007, 11:55 PM
Ok, so just found radChart.PlotArea.XAxis.Appearance.LabelAppearance.

That's working better now!.

I'm curious to know why both of these affect XAxis labels: radChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle
radChart.PlotArea.XAxis.Appearance.TextAppearance.RotationAngle

Are they each doing different duties?





0
Sebastian
Telerik team
answered on 08 Oct 2007, 08:24 AM
Hello Jason,

The LabelAppearance.RotationAngle defines the angle for rotating the axis label appearance elements while the TextAppearance.RotationAngle determines the angle for text rotation. The intuitive approach is to keep them synchronized in order to render the content of the axis labels in par with your preferences.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Dave
Top achievements
Rank 1
answered on 26 Oct 2007, 07:26 PM
Thanks for this solution.  I was having this same issue.  Doesn't seem quite intuitive, but I suppose it works.
Tags
Chart (Obsolete)
Asked by
Jason Finch
Top achievements
Rank 1
Answers by
Jason Finch
Top achievements
Rank 1
Sebastian
Telerik team
Dave
Top achievements
Rank 1
Share this question
or