Controls the internal spacing within plot band labels in ChartCategoryAxisPlotBandLabel. Use this component to add space between the label text and the label background or border edges. Padding improves text readability and visual appearance, especially when plot band labels have background colors, borders, or custom styling that requires proper text spacing.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisPlotBandLabelPadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisPlotBandLabelPadding
Implements:
Inherited Members
Constructors
public ChartCategoryAxisPlotBandLabelPadding()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
Sets the bottom padding space inside plot band labels in pixels. This creates internal spacing between the label text and the bottom edge of the label background or border. Use values like 2-8 pixels to improve text readability and visual appearance, especially when labels have backgrounds, borders, or custom styling.
[Parameter]
public double? Bottom { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
Sets the left padding space inside plot band labels in pixels. Creates internal spacing between the label text and the left edge of the label background or border. Common values are 2-8 pixels to ensure text doesn't touch label boundaries and maintains proper readability within the plot band context.
[Parameter]
public double? Left { get; set; }
Sets the right padding space inside plot band labels in pixels. This creates internal spacing between the label text and the right edge of the label background or border. Use values like 2-8 pixels to provide proper text spacing, especially important for plot band labels with background colors or borders.
[Parameter]
public double? Right { get; set; }
Sets the top padding space inside plot band labels in pixels. Creates internal spacing between the label text and the top edge of the label background or border. Standard values range from 2-8 pixels to improve text presentation and prevent text from touching label boundaries in plot band annotations.
[Parameter]
public double? Top { get; set; }