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