blazor-devexpress-dot-blazor-dot-dxchartannotationshadow-4cc2cddb.md
Specifies annotation shadow transparency.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(0.15)]
[Parameter]
public double Opacity { get; set; }
| Type | Default | Description |
|---|---|---|
| Double | 0.15 |
A value between 0 (transparent) and 1 (opaque).
|
The Opacity property accepts values from 0 (transparent) to 1 (opaque).
The following code snippet configures shadows for a text annotation:
<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">
<DxChartAnnotationShadow Blur="7"
Color="#5F368D"
HorizontalOffset="10"
VerticalOffset="10"
Opacity="0.9"/>
</DxChartAnnotation>
</DxChart>
See Also