Class
ChartValueAxisPlotBandLabelMargin

Configures the margin spacing around value axis plot band labels to control their distance from plot band boundaries and other chart elements. Provides precise control over the empty space surrounding plot band labels for optimal chart layout and annotation readability. Use this component to fine-tune label positioning and ensure proper spacing between plot band annotations and chart content.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartValueAxisPlotBandLabelMargin

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

ChartValueAxisPlotBandLabelMargin()

Declaration

cs-api-definition
public ChartValueAxisPlotBandLabelMargin()

Properties

Bottom

Sets the bottom margin of plot band labels in pixels. Controls the spacing between labels and elements positioned below them, affecting overall chart layout and annotation readability. Use this to create appropriate vertical separation between plot band labels and chart content or other axis elements. Example: Set to 5 for compact annotation layouts, or 12 for more generous spacing when labels need clear separation.

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 plot band labels in pixels. Controls the spacing between labels and elements to their left, such as the plot band area or other chart components. Use this to adjust label positioning relative to plot band boundaries and ensure proper alignment with chart annotations. Example: Set to 8 to move labels away from plot band edges, or 15 for more dramatic spacing in wide chart layouts.

Declaration

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

Property Value

double?

Right

Sets the right margin of plot band labels in pixels. Controls the spacing between labels and elements to their right, ensuring proper visual separation and chart layout balance. Use this to prevent labels from appearing too close to plot band boundaries or overlapping with chart data visualization. Example: Set to 10 for standard spacing, or 20 when working with longer label text that needs additional clearance.

Declaration

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

Property Value

double?

Top

Sets the top margin of plot band labels in pixels. Controls the spacing between labels and elements positioned above them, improving overall chart visual hierarchy and annotation clarity. Use this to create proper spacing above plot band labels and ensure they don't interfere with chart titles or other annotations. Example: Set to 6 for subtle top spacing, or 14 for clear separation from chart headers or overlapping elements.

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>