ClassChartYAxisLabelsRotation
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:
public class ChartYAxisLabelsRotation : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartYAxisLabelsRotation
Implements:
Inherited Members
Constructors
ChartYAxisLabelsRotation()
Declaration
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.
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.
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