Label Rotate in Line Chart.

Hi,

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

Thanks,
Leo


1 Reply

VK Vinoth Kumar K Syncfusion Team 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



Loader.
Up arrow icon