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

Label Rotate in Line Chart.

Thread ID:

Created:

Updated:

Platform:

Replies:

70993 Jan 10,2008 11:33 PM UTC Jan 11,2008 12:16 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Leo
Asked On January 10, 2008 11:33 PM UTC

Hi,

Any body tell me the way to rotate the DateTime Label in a LineChart.

Thanks,
Leo


Vinoth Kumar K [Syncfusion]
Replied On January 11, 2008 12:16 AM UTC

Hi Leo,

Thanks for using Syncfusion products.

Rotate the DateTime Label in a Chart?

Please use the below given snippet to Rotate the DateTime Label in a Chart.

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

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

Please let me know if you have any question.

Regards,
Vinoth



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

;