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

Defines the visual appearance and layout of the chart's main data plotting area where series data is rendered. Controls background colors, opacity, borders, margins, and padding to create the visual container for chart series. Essential for customizing chart aesthetics and ensuring proper data presentation within the chart layout. Children: ChartPlotAreaBorder, ChartPlotAreaMargin, ChartPlotAreaPadding.

Definition

Constructors

C#
public ChartPlotArea()

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

Sets the background color of the chart plot area where series data is displayed. Accepts any valid CSS color value including hex (#FF5733), RGB (rgb(255, 87, 51)), named colors (red, blue), or HSL values. Use contrasting colors to ensure data visibility and maintain chart readability.

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

Controls the transparency of the chart plot area background. Values range from 0.0 (completely transparent) to 1.0 (completely opaque). Use values like 0.1-0.3 for subtle transparency effects or 0.8-0.9 for semi-transparent backgrounds that allow underlying elements to show through.

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