We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Label Rotate

Hi, I was unable to get the labelrotate property on chartaxis object to do anything? I also tried adding rotatetransform to customaxislabel, but did not work.
Any ideas on how to rotate axis label text?
Troy.

3 Replies

MS Mohamed Suhaib Fahad A. Syncfusion Team September 17, 2007 05:18 AM UTC

Hi Troy,

Thanks for the details. Please check with your code if you had set the "LabelRotateAngle" property. Here's the code snippet for using it,

[C#]

this.chartControl1.PrimaryXAxis.LabelRotateAngle = 45;

Please refer the following sample as a reference,

http://websamples.syncfusion.com/samples/Chart.Windows/F68283/main.htm

Let me know if you want any more details.

Regards,
Fahad



TW Troy Wing September 18, 2007 03:04 AM UTC

Hi, yes I did set the angle also.
The sample you referred to is actually .NET winforms not WPF.
I am pretty certain its not working in WPF version as none of the samples for WPF have the rotate option working.

Can you please confirm issue, and if its going to be fixed in another beta version.
Troy.
>Hi Troy,

Thanks for the details. Please check with your code if you had set the "LabelRotateAngle" property. Here's the code snippet for using it,

[C#]

this.chartControl1.PrimaryXAxis.LabelRotateAngle = 45;

Please refer the following sample as a reference,

http://websamples.syncfusion.com/samples/Chart.Windows/F68283/main.htm

Let me know if you want any more details.

Regards,
Fahad



VM Venugopal M Syncfusion Team September 18, 2007 12:13 PM UTC

Hi Troy,

We can rotate the axis label using this property.

[C#]

Chart1.Areas[0].XAxis.LabelIntersectAction = ChartLabelIntersectAction.Rotate;
(or)
Chart1.Areas[0].XAxis.LabelIntersectAction = ChartLabelIntersectAction.RotatedMultipleRows;

But currently you could not specify the angle value for rotation. Next version of the Syncfusion Essential Studio WPF Chart greatly getting changes.

Thanks for the interest in Syncfusion products.

Please let me know if you have any questions.

Thanks,
Venugopal

Loader.
Live Chat Icon For mobile
Up arrow icon