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

XAxis label rotation

1 Answer 92 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 24 Mar 2009, 08:33 PM
Hello,

Is it possible to move the axis of rotation for Xaxis labels?  Currently I have a collection of strings with varied lengths as labels on the x axis. I'd like to set the rotation to -45 so they stack up diagonally along the axis.  Currently, the strings are rotated with the axis of rotation in the middle, so unless I set the AlignedPostion to Center, the strings still overrun each other.

 I'd like to set the aligned position to right so they line up tight to the axis, and somehow tell them rotate along the right most edge too. Is this possible?

1 Answer, 1 is accepted

Sort by
0
Dessy
Telerik team
answered on 26 Mar 2009, 08:14 AM
Hello Chris,

Unfortunately, the rotation axis cannot be controlled - the origin of the rotation is the label center. You can use the labels position to achieve similar results:

<LabelAppearance RotationAngle="-45" Position-AlignedPosition="TopLeft" > 
</LabelAppearance> 
 

The results however will vary according to the label text length - the longer the text, the farther the right end will go. I hope this workaround is applicable.

Kind regards,
Dessy
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Chris
Top achievements
Rank 1
Answers by
Dessy
Telerik team
Share this question
or