ChartChartArea
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
public ChartChartArea()
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 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.
[Parameter]
public string Background { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
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.
[Parameter]
public double? Opacity { get; set; }