Class
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

Constructors

ChartChartArea()

Declaration

cs-api-definition
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

cs-api-definition
[Parameter]
public string Background { get; set; }

Property Value

string

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

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

cs-api-definition
[Parameter]
public double? Opacity { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>