ChartPlotArea
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
public ChartPlotArea()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
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.
[Parameter]
public string Background { get; set; }
[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.
[Parameter]
public double? Opacity { get; set; }