ClassChartPlotAreaBorder
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartPlotAreaBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartPlotAreaBorder
Implements:
Inherited Members
Constructors
ChartPlotAreaBorder()
Declaration
public ChartPlotAreaBorder()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
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.
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
[Parameter]
public DashType? DashType { get; set; }
Property Value
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.
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