Configures the border appearance around category axis labels in ChartCategoryAxisLabels. Use this component to add visual emphasis to category labels by defining border color, style pattern, and thickness. Borders can improve label readability against complex chart backgrounds or create visual hierarchy in multi-axis charts. Combine with padding and margin settings for optimal label presentation.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisLabelsBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsBorder
Implements:
Inherited Members
Constructors
public ChartCategoryAxisLabelsBorder()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
[Parameter]
public RenderFragment ChildContent { get; set; }
Sets the border color around category axis labels. Accepts any valid CSS color value including hex codes (#FF0000), RGB values (rgb(255,0,0)), named colors (red), or HSL values. Use this to create visual emphasis or improve label readability against complex chart backgrounds.
[Parameter]
public string Color { get; set; }
Defines the line style pattern for the category axis label border. Choose from predefined patterns to create different visual effects: Solid creates continuous borders, Dash produces dashed outlines, Dot creates dotted borders, DashDot alternates dashes and dots, LongDash uses longer dash segments, LongDashDot combines long dashes with dots, and LongDashDotDot creates complex patterns with long dashes followed by two dots.
[Parameter]
public DashType? DashType { get; set; }
Controls the thickness of the category axis label border in pixels. Set to 0 (default) to hide the border completely, or use positive values like 1-3 pixels for subtle outlines, or larger values for prominent borders. Combine with Color to create custom label styling that enhances readability.
[Parameter]
public double? Width { get; set; }