XAxisLabelRotation property
- Last UpdatedNov 26, 2024
- 1 minute read
Use the XAxisLabelRotation property to specify the angle of rotation value (in degrees) that should be applied to x-axis labels. This is a design-time and a run-time property. However, changing the value will not update the chart until the next time the chart is refreshed or the DisplayChart() method is called.
Valid values behave as follows:
-
Null results in the label being at 0° (horizontal text with a direction from left to right) unless the labels will overlap, in which case the appropriate angle will be calculated automatically.
-
0 results in fixed horizontal text. Labels will not be rotated if they overlap.
-
Positive values rotate the labels counterclockwise. For example, 90 results in vertical text turned 90° counterclockwise (text direction is bottom to top).
-
Negative values rotate the labels clockwise. For example, ‑90 results in vertical text turned 90° clockwise (text direction is top to bottom).
The following figure shows the label rotated using a value of 45 (that is, 45° counterclockwise).

|
Data Type |
Read/Write |
Default Value |
|---|---|---|
|
Int32 |
R/W |
Null |