blazor-devexpress-dot-blazor-dot-dxchartannotationbase-1-514056ff.md
Specifies the annotation type.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public ChartAnnotationType Type { get; set; }
| Type | Description |
|---|---|
| ChartAnnotationType |
An enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Text |
Displays text assigned to the DxChartAnnotationBase.Text property.
| | Image |
Displays an image specified by the DxChartAnnotationImage.Url property.
|
Use the Type property to specify whether the chart displays an image or text string within the annotation.
The default annotation type is Text. To display a text annotation, assign a text string to the Text property.
<DxChartAnnotation Text="iPhone 14">
@* ... *@
</DxChartAnnotation>
To create an image annotation, follow the steps below:
Type property to Image.<DxChartAnnotation Type="ChartAnnotationType.Image">
<DxChartAnnotationImage Url="@StaticAssetUtils.GetImagePath("AppleStock/stock.svg")"
Width="40"
Height="40" />
@* ... *@
</DxChartAnnotation>
Refer to the following section for additional information about annotations: Annotations in Blazor Charts.
See Also
DxChartAnnotationBase<T> Class