ComponentOne CandlestickChart for ASP.NET Web Forms
Candlestick Chart Elements / Axes / Axis Text Elements / Rotating the Axis Label
In This Topic
    Rotating the Axis Label
    In This Topic

    This topic shows how to rotate the axis label at design time and programmatically using the Rotation property.

    1. In design time, select the CandlestickChart control and navigate to its properties window.
    2. Expand the Axis->X->Labels->AxisLabelStyle nodes and set the Rotation property to 60.

    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: