ClassChartXAxisPlotBandLabelMargin
Configures the external spacing around X-axis plot band labels. Provides precise control over label positioning by defining the space between the label and surrounding chart elements. Use this component to ensure proper label placement, prevent overlapping with plot bands or other chart elements, and create professional spacing.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartXAxisPlotBandLabelMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartXAxisPlotBandLabelMargin
Implements:
Inherited Members
Constructors
ChartXAxisPlotBandLabelMargin()
Declaration
public ChartXAxisPlotBandLabelMargin()
Properties
Bottom
Sets the bottom margin of the plot band label in pixels. Defines the space between the bottom edge of the label and adjacent chart elements below it. Use this property to prevent label overlap with chart series, other plot bands, or axis elements positioned below the label. Adjust based on label position and surrounding chart density for optimal spacing.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left margin of the plot band label in pixels. Defines the space between the left edge of the label and adjacent chart elements to its left. Use this property to ensure proper spacing from the chart edge, Y-axis, or other plot band labels positioned to the left. Particularly important when labels are positioned at the left edge of plot bands or chart area.
Right
Sets the right margin of the plot band label in pixels. Defines the space between the right edge of the label and adjacent chart elements to its right. Use this property to prevent overlap with chart legend, other plot band labels, or chart edge elements positioned to the right. Essential for maintaining clean spacing when labels are positioned at the right edge of plot bands.
Top
Sets the top margin of the plot band label in pixels. Defines the space between the top edge of the label and adjacent chart elements above it. Use this property to ensure proper separation from chart title, legend, or other plot band labels positioned above. Critical for preventing label overlap when multiple plot bands have labels in the same vertical area.
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