Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxChartRangeAreaSeries<T, TArgument, TValue>.Opacity Property

Specifies the transparency of a range area series.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(0.5)]
[Parameter]
public double Opacity { get; set; }

#Property Value

Type Default Description
Double 0.5

The opacity value.

#Remarks

Use the Opacity property to specify transparency of a range area series. The property accepts a value from 0 to 1, where 0 makes series transparent and 1 makes them opaque.

The following example sets the Opacity property value to 0.7:

Razor
<DxChart Data="@SalesData">
    <DxChartRangeAreaSeries Name="2019"
                            Filter="@((SaleInfo s) => s.Date.Year == 2019)"
                            ArgumentField="@(s => s.City)"
                            ValueField="@(s => s.Amount)"
                            SummaryMethod="Enumerable.Sum"
                            Opacity="0.7" />
</DxChart>

Series Opacity

See Also