ClassChartSeriesLabelsPadding
Manages the internal spacing within chart series data point labels between label borders/backgrounds and text content. Controls the space inside label boundaries to ensure proper text presentation, readability, and professional appearance of data value displays.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSeriesLabelsPadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesLabelsPadding
Implements:
Inherited Members
Constructors
ChartSeriesLabelsPadding()
Declaration
public ChartSeriesLabelsPadding()
Properties
Bottom
Sets the bottom internal padding space within series data point labels in pixels. Creates space between the label text and the bottom edge of the label background or border, ensuring proper text presentation and preventing cramped appearance in data visualizations.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left internal padding space within series data point labels in pixels. Provides space between the label text and the left edge of the label background, ensuring text doesn't touch label boundaries and maintains optimal readability.
Right
Sets the right internal padding space within series data point labels in pixels. Creates space between the label text and the right edge of the label background or border, preventing text from appearing cramped and ensuring professional label appearance.
Top
Sets the top internal padding space within series data point labels in pixels. Provides space between the label text and the top edge of the label background, ensuring balanced text positioning and optimal readability in chart data presentations.
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