Class
ChartYAxisLabelsRotation

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

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartYAxisLabelsRotation

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

ChartYAxisLabelsRotation()

Declaration

cs-api-definition
public ChartYAxisLabelsRotation()

Properties

Align

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.

Declaration

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

Property Value

string

Angle

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.

Declaration

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

Property Value

double?

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>