ClassChartChartArea
Configures the visual appearance of the chart plotting area in TelerikChart. Use this component to customize the background color and transparency of the inner chart area where data series are rendered. This affects only the plotting region, not the entire chart container, allowing you to create visual contrast with data series, establish branding themes, or improve overall chart readability and aesthetics.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartChartArea : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartChartArea
Implements:
Inherited Members
Constructors
ChartChartArea()
Declaration
public ChartChartArea()
Properties
Background
Sets the background color of the chart plotting area where data series are rendered. Accepts any valid CSS color including hex codes (#F8F9FA), RGB values (rgb(248,249,250)), named colors (whitesmoke), or HSL values. Use background colors to create visual contrast with data series, establish branding themes, or improve chart readability. This affects only the inner plotting area, not the entire chart container.
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 area background using values from 0.0 (completely transparent) to 1.0 (completely opaque, default). Lower opacity values (0.1-0.5) create subtle background effects that don't interfere with data visualization, while higher values (0.7-1.0) provide strong background presence. Useful for layered chart effects or subtle branding integration.
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