New to Telerik UI for BlazorStart a free 30-day trial

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

Constructors

C#
public ChartSeriesLabelsMargin()

Properties

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.

C#
[Parameter]
public double? Bottom { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

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.

C#
[Parameter]
public double? Left { get; set; }

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.

C#
[Parameter]
public double? Right { get; set; }

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.

C#
[Parameter]
public double? Top { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>