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
public ChartYAxisLabelsRotation()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
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.
[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.
[Parameter]
public double? Angle { get; set; }