Class
ChartYAxisLabelsBorder

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

Constructors

ChartYAxisLabelsBorder()

Declaration

cs-api-definition
public ChartYAxisLabelsBorder()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

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.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

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

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

Property Value

DashType?

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.

Declaration

cs-api-definition
[Parameter]
public double? Width { 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>