Skip to main content
All docs
V24.1

DxChartAnnotationImage.Height Property

Specifies the annotation image height.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(30)]
[Parameter]
public double Height { get; set; }

Property Value

Type Default Description
Double 30

The image height.

Remarks

Set the DxChartAnnotation.Type property to Image to display an image within a chart annotation and use the Height property to specify the image’s height.

The following example configures settings for an image annotation:

<DxChart Data="@DataSource">
    @* ... *@
    <DxChartLineSeries ValueField="@((ApplePrice i) => i.Close)"
                       ArgumentField="@((ApplePrice i) => i.Date)"
                       Name="AAPL" />
    <DxChartAnnotation PositionX="150"
                       PositionY="150"
                       Type="ChartAnnotationType.Image"
                       Color="transparent"
                       PaddingLeftRight="0"
                       PaddingTopBottom="0">
        <DxChartAnnotationImage Url="@StaticAssetUtils.GetImagePath("AppleStock/stock.svg")"
                                Width="60"
                                Height="60" />
        <DxChartAnnotationBorder Visible="false" />
    </DxChartAnnotation>
</DxChart>

Chart - Image annotation

See Also