Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V24.1

DxChartAnnotationBase<T>.Opacity Property

Specifies annotation transparency.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

Declaration

[DefaultValue(0.9)]
[Parameter]
public double Opacity { get; set; }

Property Value

Type Default Description
Double 0.9

A value between 0 (transparent) and 1 (opaque).

Remarks

The Opacity property accepts values from 0 (transparent) to 1 (opaque).

The code sample below changes the annotation opacity:

<DxChart Data="@DataSource">
    @* ... *@
    <DxChartLineSeries ValueField="@((ApplePrice i) => i.Close)"
                       ArgumentField="@((ApplePrice i) => i.Date)"
                       Name="AAPL" />
    <DxChartAnnotation Argument="new DateTime(2019, 9, 10)"
                       Series="AAPL"
                       Text="Watch Series 5"
                       Height="70"
                       Width="150"
                       Opacity="0.3">
        <DxChartFont Size="18" />
    </DxChartAnnotation>
</DxChart>

Chart - Annotation opacity

Refer to the DxChartAnnotationBase topic for more information about chart annotations.

See Also