ClassChartCategoryAxisLabelsRotation
Configures rotation settings for category axis labels in ChartCategoryAxisLabels. Use this component to rotate labels when horizontal space is limited or to create visual effects. Supports automatic rotation to prevent label overlap, custom angle rotation for specific layouts, and alignment control to determine the rotation anchor point. Essential for charts with long category names or many data points where standard horizontal labels would overlap.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisLabelsRotation : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsRotation
Implements:
Inherited Members
Constructors
ChartCategoryAxisLabelsRotation()
Declaration
public ChartCategoryAxisLabelsRotation()
Properties
Align
Controls the alignment point for label rotation using ChartAxisLabelsRotationAlignment values. Determines which part of the label serves as the rotation anchor: Start rotates around the label beginning, End rotates around the label end, and Center rotates around the label middle. This affects how rotated labels are positioned relative to their axis tick marks.
Declaration
[Parameter]
public ChartAxisLabelsRotationAlignment? Align { get; set; }
Property Value
Angle
Sets the rotation angle for category axis labels in degrees. Use numeric values like 45, 90, or -45 for specific angles, or set to "auto" to let the chart automatically rotate labels when space is limited. Positive values rotate clockwise, negative values rotate counter-clockwise. Auto rotation helps prevent label overlap in crowded charts.
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns