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

DxChartAnnotationBorder Class

Defines annotation border settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

Declaration

public class DxChartAnnotationBorder :
    DxSettingsComponent<ChartAnnotationBorderModel>

Remarks

The DxChartAnnotationBorder component allows you to configure borders for chart annotations.

Use the Visible property to control the visibility of annotation borders.

To customize border appearance, specify any of the following properties:

Color
Specifies the color for annotation borders.
CornerRadius
Specifies the corner radius for annotation borders.
DashStyle
Specifies the line style for annotation borders.
Opacity
Specifies annotation border transparency.
Width
Specifies the annotation border width.

Note

The CornerRadius property values affect an annotation’s appearance even if the Visible property is set to false.

The code sample below changes the appearance of annotation borders:

<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">
        <DxChartAnnotationBorder Color="#5F368D"
                                 CornerRadius="6"
                                 DashStyle="ChartDashStyle.Dot"
                                 Opacity="0.7"
                                 Width="2" />
    </DxChartAnnotation>
</DxChart>

Chart - Annotation borders

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

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.Internal.ChartAnnotationBorderModel>
DxChartAnnotationBorder
See Also