ClassChartYAxisPlotBandLabelMargin
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:
public class ChartYAxisPlotBandLabelMargin : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartYAxisPlotBandLabelMargin
Implements:
Inherited Members
Constructors
ChartYAxisPlotBandLabelMargin()
Declaration
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
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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.
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.
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