Back to Devexpress

DxChartAnnotationBase<T>.Text Property

blazor-devexpress-dot-blazor-dot-dxchartannotationbase-1-29e34789.md

latest1.9 KB
Original Source

DxChartAnnotationBase<T>.Text Property

Specifies annotation text when the Type property is set to Text.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public string Text { get; set; }

Property Value

TypeDescription
String

The annotation text.

|

Remarks

The default annotation type is Text. To display a text annotation, assign a text string to the Text property.

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"
                       VerticalOffset="-50" />
    <DxChartAnnotation Argument="new DateTime(2020, 12, 15)"
                       Series="AAPL"
                       Text="AirPods Max"
                       VerticalOffset="-50" />
</DxChart>

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

See Also

DxChartAnnotationBase<T> Class

DxChartAnnotationBase<T> Members

DevExpress.Blazor Namespace