New to Telerik UI for BlazorStart a free 30-day trial

Configures the visual styling for area-type legend items in ChartLegendItem. Use this component to customize how area charts, stacked area charts, and similar series are represented in the legend. Controls the background color and opacity of the legend symbols that correspond to filled area visualizations, ensuring visual consistency between legend and chart data.

Definition

Constructors

C#
public ChartLegendItemArea()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Sets the background color for area-type legend items representing area charts or similar series. Accepts any valid CSS color including hex codes (#FF6B6B), RGB values (rgb(255,107,107)), named colors (coral), or HSL values. When not specified, automatically uses the series color to maintain visual consistency between the legend and chart data.

C#
[Parameter]
public string Background { get; set; }
C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Controls the transparency of area-type legend items using values from 0.0 (completely transparent) to 1.0 (completely opaque). When not specified, automatically uses the series opacity to ensure the legend accurately represents how the data appears in the chart. Use custom values to adjust legend visibility without affecting chart data.

C#
[Parameter]
public double? Opacity { get; set; }