Candlestick Chart Elements > Axes > Axis Text Elements > Rotating the Axis Label |
This topic shows how to rotate the axis label at design time and programmatically using the Rotation property.
To programmatically rotate the X-axis annotation to a 60 degree angle so it appears slanted toward the use the following code:
To write code in VB
CandlestickChart.Axis.X.Labels.AxisLabelStyle.Rotation = 60
To write code in CS
CandlestickChart.Axis.X.Labels.AxisLabelStyle.Rotation = 60;
This topic illustrates the following:
The following image shows the X-Axis labels rotated to a 60 degree angle: