Class
ChartPlotAreaBorder

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

ChartPlotAreaBorder()

Declaration

cs-api-definition
public ChartPlotAreaBorder()

Properties

ChildContent

Declaration

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

Property Value

RenderFragment

Color

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.

Declaration

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

Property Value

string

DashType

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.

Declaration

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

Property Value

DashType?

Width

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.

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>