Back to Devexpress

DxChartAnnotationShadow Class

blazor-devexpress-dot-blazor-e7536011.md

latest2.8 KB
Original Source

DxChartAnnotationShadow Class

Defines annotation shadow settings.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxChartAnnotationShadow :
    DxSettingsComponent<ChartAnnotationShadowModel>

Remarks

The DxChartAnnotationShadow component allows you to configure shadows for chart annotations.

Blur | Color | OpacitySpecify the shadow appearance.HorizontalOffset | VerticalOffsetSpecify the shadow position.

The following code snippet configures shadows for a text annotation:

razor
<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>

Refer to the following section for additional information about annotations: Annotations in Blazor Charts.

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

Object ComponentBase DxSettingsComponent<DevExpress.Blazor.Internal.ChartAnnotationShadowModel> DxChartAnnotationShadow

See Also

DxChartAnnotationShadow Members

DevExpress.Blazor Namespace