Class
ChartYAxisPlotBandLabelMargin

Configures the external spacing around Y-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 for value range identification.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartYAxisPlotBandLabelMargin

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

ChartYAxisPlotBandLabelMargin()

Declaration

cs-api-definition
public ChartYAxisPlotBandLabelMargin()

Properties

Bottom

Sets the bottom external spacing for Y-axis plot band labels in pixels to control positioning and prevent overlap. Use this property to create appropriate distance between the label and chart elements below it, such as other labels or plot bands. Larger values (8-16 pixels) provide more separation for complex charts, while smaller values (2-6 pixels) create compact layouts. Consider the overall chart density and value range distribution when setting bottom margin for optimal label placement and readability.

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 external spacing for Y-axis plot band labels in pixels to control horizontal positioning and chart layout. Use this property to create appropriate distance between the label and chart elements to its left, such as the axis line or other labels. Larger values (8-16 pixels) provide more separation from the axis, while smaller values (2-6 pixels) keep labels closer to the value context. Consider plot band width and label content when setting left margin for optimal value range identification and professional appearance.

Declaration

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

Property Value

double?

Right

Sets the right external spacing for Y-axis plot band labels in pixels to control horizontal positioning and prevent text truncation. Use this property to create appropriate distance between the label and chart elements to its right, such as the plot area or other chart components. Larger values (8-16 pixels) provide more space for longer label text, while smaller values (2-6 pixels) create compact layouts. Consider label text length and chart layout when setting right margin for optimal readability and value range presentation.

Declaration

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

Property Value

double?

Top

Sets the top external spacing for Y-axis plot band labels in pixels to control vertical positioning and visual hierarchy. Use this property to create appropriate distance between the label and chart elements above it, such as other labels or plot bands. Larger values (8-16 pixels) provide more separation for complex value range layouts, while smaller values (2-6 pixels) create compact presentations. Consider the overall chart structure and value distribution when setting top margin for optimal label placement and measurement context clarity.

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>