ClassChartYAxisLabelsBorder
Configures the border styling for Y-axis value labels. Provides comprehensive control over border appearance including color, line style, and thickness to enhance label visibility and create professional presentation. Use this component to create clear visual definition around value labels, improving readability against varied chart backgrounds and enhancing overall chart aesthetics.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartYAxisLabelsBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartYAxisLabelsBorder
Implements:
Inherited Members
Constructors
ChartYAxisLabelsBorder()
Declaration
public ChartYAxisLabelsBorder()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
Specifies the color of the border around Y-axis labels. Accepts any valid CSS color value including hex codes (#CCCCCC), RGB values (rgb(204,204,204)), or color names (lightgray). Use this property to create visual separation between axis labels and the chart background for improved readability. Consider using subtle colors that enhance label visibility without overwhelming the chart or competing with data visualization.
DashType
Defines the line pattern for the Y-axis label borders using predefined dash styles. Available options include solid lines for clean professional appearance, dotted lines for subtle definition, and various dash patterns for specialized chart presentations or visual emphasis. Use solid borders for maximum clarity and readability, or dash patterns to create visual hierarchy between different label types. See DashType for all available line pattern options.
Declaration
[Parameter]
public DashType? DashType { get; set; }
Property Value
Width
Sets the thickness of the Y-axis label borders in pixels. Use thin borders (1-2 pixels) for subtle label definition that enhances readability without visual distraction. Thicker borders (3-4 pixels) create more prominent label separation for charts requiring enhanced value identification. Set to 0 to disable borders completely, which is the default behavior for clean chart presentation. Consider chart size and viewing context when choosing border width for optimal label clarity and professional appearance.
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