ClassChartSeriesLabelsMargin
Controls the external spacing around chart series data point labels to prevent overlap and ensure proper label positioning relative to other chart elements. Manages the space between labels and surrounding chart components for optimal readability and visual balance.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSeriesLabelsMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesLabelsMargin
Implements:
Inherited Members
Constructors
ChartSeriesLabelsMargin()
Declaration
public ChartSeriesLabelsMargin()
Properties
Bottom
Sets the bottom external margin space below series data point labels in pixels. Creates separation between labels and elements below them, preventing overlap with chart axes, other labels, or chart borders. Use values like 3-10 pixels for optimal label spacing.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left external margin space to the left of series data point labels in pixels. Provides separation between labels and adjacent chart elements, ensuring clear label positioning and preventing visual conflicts. Common values range from 3-15 pixels.
Right
Sets the right external margin space to the right of series data point labels in pixels. Creates separation between labels and other chart elements, maintaining proper visual hierarchy and preventing overlap in dense data visualizations.
Top
Sets the top external margin space above series data point labels in pixels. Provides separation between labels and elements above them, ensuring proper visual spacing and preventing overlap with chart titles, legends, or other labels.
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