Class
ChartSeriesLabelsToMargin

Controls the external spacing around "to" value labels in range chart series to prevent overlap and ensure proper label positioning. Manages the space between to labels and other chart elements, optimizing layout for clear range data visualization and avoiding visual conflicts with from labels.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ChartSeriesLabelsToMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentChartSeriesLabelsToMargin

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartSeriesLabelsToMargin()

Declaration

cs-api-definition
public ChartSeriesLabelsToMargin()

Properties

Bottom

Sets the bottom external margin space below "to" value labels in range series in pixels. Creates separation between to labels and elements below them, preventing overlap with chart data or other labels. Use values like 3-10 pixels for optimal spacing in range visualizations.

Declaration

cs-api-definition
[Parameter]
public double? Bottom { get; set; }

Property Value

double?

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Left

Sets the left external margin space to the left of "to" value labels in range series in pixels. Provides separation between to labels and adjacent chart elements, ensuring clear label positioning. Common values range from 3-15 pixels depending on label density and chart layout.

Declaration

cs-api-definition
[Parameter]
public double? Left { get; set; }

Property Value

double?

Right

Sets the right external margin space to the right of "to" value labels in range series in pixels. Creates separation between to labels and other chart elements, particularly important when displaying both from and to labels to avoid visual overlap and maintain readability.

Declaration

cs-api-definition
[Parameter]
public double? Right { get; set; }

Property Value

double?

Top

Sets the top external margin space above "to" value labels in range series in pixels. Provides separation between to labels and elements above them, ensuring proper visual hierarchy and preventing overlap with chart titles or other labels in range data presentations.

Declaration

cs-api-definition
[Parameter]
public double? Top { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>