New to Telerik UI for BlazorStart a free 30-day trial

Configures the rotation settings for Y-axis value labels to optimize space usage and readability. Provides control over label angle and alignment to handle long numeric values, prevent overlap, and create optimal presentation for varying label lengths. Use this component to rotate value labels when vertical space is limited or when angled labels improve overall chart readability and aesthetic appeal.

Definition

Constructors

C#
public ChartYAxisLabelsRotation()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Specifies the alignment of rotated Y-axis labels relative to their designated position. Supports "end" (default) to align the closest end of the label to the axis position, or "center" to align the label's center point. Use "end" for consistent label positioning near the axis line, or "center" for balanced label appearance when rotation creates varied label orientations. Particularly useful when rotating long numeric labels to optimize readability and prevent overlap.

C#
[Parameter]
public string Align { get; set; }

Sets the rotation angle for Y-axis value labels in degrees. Positive values rotate labels clockwise, negative values rotate counter-clockwise. Default is 0 (no rotation). Use rotation to optimize space usage for long numeric values or when standard horizontal labels create overlap. Common angles include 45, 90, or -45 degrees for improved readability while maintaining professional appearance.

C#
[Parameter]
public double? Angle { get; set; }