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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

X-axis label rotation

Thread ID:

Created:

Updated:

Platform:

Replies:

70406 Dec 10,2007 10:44 PM UTC Dec 12,2007 05:37 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Tommy Kwok
Asked On December 10, 2007 10:44 PM UTC

I have defined my X-axis label as follow, however the x-axis label refuses to rotate as per instructed. Could you please let me know if I'm missing something?
Me.ChartWebControl1.PrimaryXAxis.ValueType = ChartValueType.DateTime
Me.ChartWebControl1.PrimaryXAxis.DateTimeRange = New ChartDateTimeRange(CDate("01/Nov/2007"), CDate("30/Nov/2007"), 5, ChartDateTimeIntervalType.Days)
Me.ChartWebControl1.PrimaryXAxis.DateTimeFormat = "dd/MM/yyyy"
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelRotate = True
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelRotateAngle = 90
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelAligment = StringAlignment.Center


Sri Subhashini M [Syncfusion]
Replied On December 12, 2007 05:37 AM UTC

Hi,

Thank you for posting your query to us.

I am afraid that I was not able to reproduce the issue. I have used the following code to rotate the chart label.

Me.ChartWebControl1.PrimaryXAxis.ValueType = ChartValueType.DateTime
Me.ChartWebControl1.PrimaryXAxis.DateTimeRange = New ChartDateTimeRange(CDate("01/Nov/2007"), CDate("30/Nov/2007"), 5, ChartDateTimeIntervalType.Days)
Me.ChartWebControl1.PrimaryXAxis.DateTimeFormat = "dd/MM/yyyy"
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelRotate = True
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelRotateAngle = 90
Me.ChartWebControl1.ChartArea.PrimaryXAxis.LabelAligment = StringAlignment.Center

I have created a simple sample to test this issue with different version and it works fine.

Please look into the sample images which has taken from different versions.

http://www.syncfusion.com/support/user/uploads/SampleImage_F70406_416d86cd.zip

The sample is available in the following link.
http://websamples.syncfusion.com/samples/Chart.Web/6.1.0.34/70406/main.htm

Please have a look at the above sample and if still the issue exists let me know at which version you are getting the issue so that we could sort out the cause of the issue and provide you a solution.

Regards,
Suba


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;