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.
Unfortunately, activation email could not send to your email. Please try again.

Label Rotate in Line Chart.

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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

Thanks,
Leo


Vinoth Kumar K [Syncfusion]
Replied On January 10, 2008 07:16 PM

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.

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.

;