New to Telerik UI for BlazorStart a free 30-day trial

Configures the border styling around the chart plot area to define visual boundaries and enhance chart presentation. Controls border color, line style patterns, and thickness to create professional chart layouts and improve data region definition within the overall chart design.

Definition

Constructors

C#
public ChartPlotAreaBorder()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Sets the color of the plot area border using any valid CSS color value. Accepts hex codes (#333333), RGB values (rgb(51, 51, 51)), named colors (gray, black), or HSL values. Choose colors that complement the chart theme and provide clear visual separation between the plot area and other chart elements.

C#
[Parameter]
public string Color { get; set; }

Defines the line pattern for the plot area border using DashType values. Options include "solid" for continuous lines, "dash" for dashed borders, "dot" for dotted patterns, "dashDot" for alternating dash-dot patterns, and other combinations. Use different patterns to create distinctive visual styles or match design themes.

C#
[Parameter]
public DashType? DashType { get; set; }

Specifies the thickness of the plot area border in pixels. Use 1-2 pixels for subtle borders, 3-5 pixels for prominent borders, or 0 to hide the border completely. Border width affects the overall chart layout and should be balanced with other visual elements for optimal appearance.

C#
[Parameter]
public double? Width { get; set; }