Class
ChartCategoryAxisPlotBandLabelMargin

Controls the external spacing around plot band labels in ChartCategoryAxisPlotBandLabel. Use this component to add space between plot band labels and surrounding chart elements like other plot bands, axes, annotations, or chart borders. Proper margins prevent label overlap and create clear visual separation, especially important in charts with multiple plot bands or dense layouts.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisPlotBandLabelMargin

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

ChartCategoryAxisPlotBandLabelMargin()

Declaration

cs-api-definition
public ChartCategoryAxisPlotBandLabelMargin()

Properties

Bottom

Sets the bottom margin space below plot band labels in pixels. Use this to add spacing between the label and chart elements positioned below it, such as other plot bands, axes, or chart annotations. Common values range from 0-15 pixels depending on chart density and layout requirements.

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 space to the left of plot band labels in pixels. Creates spacing between the label and chart elements like axes, other plot band labels, or chart borders. Typical values are 0-10 pixels for standard layouts to prevent label overlap.

Declaration

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

Property Value

double?

Right

Sets the right margin space to the right of plot band labels in pixels. Use this to create separation between the label and chart elements positioned to its right, such as other plot bands, axes, or chart annotations. Standard values range from 0-10 pixels.

Declaration

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

Property Value

double?

Top

Sets the top margin space above plot band labels in pixels. Creates spacing between the label and chart elements positioned above it, such as other plot bands, chart titles, or annotations. Common values are 0-15 pixels for proper visual separation and readability.

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>