Class
ChartXAxisPlotBandLabelMargin

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:

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

Inheritance: objectComponentBaseDataVizChildComponentChartXAxisPlotBandLabelMargin

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

ChartXAxisPlotBandLabelMargin()

Declaration

cs-api-definition
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

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 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.

Declaration

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

Property Value

double?

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.

Declaration

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

Property Value

double?

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.

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>