Class
ChartCategoryAxisLabelsRotation

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:

cs-api-definition
public class ChartCategoryAxisLabelsRotation : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsRotation

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartCategoryAxisLabelsRotation()

Declaration

cs-api-definition
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

cs-api-definition
[Parameter]
public ChartAxisLabelsRotationAlignment? Align { get; set; }

Property Value

ChartAxisLabelsRotationAlignment?

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.

Declaration

cs-api-definition
[Parameter]
public object Angle { get; set; }

Property Value

object

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>