Back to Devexpress

DxChartAnnotationShadow.Color Property

blazor-devexpress-dot-blazor-dot-dxchartannotationshadow-ceec2bb5.md

latest1.9 KB
Original Source

DxChartAnnotationShadow.Color Property

Specifies the color for annotation shadows.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue("#000000")]
[Parameter]
public string Color { get; set; }

Property Value

TypeDefaultDescription
String"#000000"

The shadow color.

|

Remarks

The Color property accepts the following formats:

  • Longhand and shorthand hexadecimal color values: #ffff00, #ff0.
  • RGB and RGBA color codes: rgb(255, 0, 0), rgba(0, 230, 0, 0.3).
  • HTML color name (case-insensitive): red, DarkGreen.

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>

See Also

DxChartAnnotationShadow Class

DxChartAnnotationShadow Members

DevExpress.Blazor Namespace