ClassChartYAxisLabelsPadding
Configures the internal spacing within Y-axis value labels. Provides precise control over the space between label text and its border or background edge to ensure optimal text presentation and readability. Use this component to create comfortable reading space around value labels and maintain professional appearance with adequate breathing room for varied text lengths.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartYAxisLabelsPadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartYAxisLabelsPadding
Implements:
Inherited Members
Constructors
ChartYAxisLabelsPadding()
Declaration
public ChartYAxisLabelsPadding()
Properties
Bottom
Sets the bottom padding inside Y-axis labels in pixels. Defines the space between the bottom edge of label text and the label's bottom border or background edge. Use this property to ensure value text doesn't appear cramped against the label bottom and maintains professional spacing. Increase for better text readability, especially with larger fonts or when labels have visible backgrounds.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left padding inside Y-axis labels in pixels. Defines the space between the left edge of label text and the label's left border or background edge. Use this property to prevent value text from appearing too close to the label's left boundary and ensure comfortable reading space. Particularly important when labels have visible backgrounds or borders that could visually crowd the numeric values.
Right
Sets the right padding inside Y-axis labels in pixels. Defines the space between the right edge of label text and the label's right border or background edge. Use this property to ensure value text has adequate breathing room and doesn't appear cramped against the right boundary. Essential for maintaining text readability when labels have background colors or borders that could interfere with numeric value clarity.
Top
Sets the top padding inside Y-axis labels in pixels. Defines the space between the top edge of label text and the label's top border or background edge. Use this property to prevent value text from appearing too close to the label's top boundary and maintain balanced vertical spacing. Increase for better visual balance, especially when labels have prominent backgrounds or when using larger font sizes for value display.
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