ClassChartSeriesLabelsToMargin
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:
public class ChartSeriesLabelsToMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSeriesLabelsToMargin
Implements:
Inherited Members
Constructors
ChartSeriesLabelsToMargin()
Declaration
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
[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 "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.
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.
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.
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