blazor-devexpress-dot-blazor-dot-dxchartannotationshadow-aba39290.md
Specifies the vertical offset of annotation shadows.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(1)]
[Parameter]
public double VerticalOffset { get; set; }
| Type | Default | Description |
|---|---|---|
| Double | 1 |
The offset in pixels.
|
The VerticalOffset property value shifts annotation shadows vertically from their initial positions. A positive value shifts shadows down, a negative value shifts them up.
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