DxChartAnnotationBase<T>.PositionX Property
Specifies the X coordinate of the annotation center.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
Declaration
[Parameter]
public double PositionX { get; set; }
Property Value
Type | Description |
---|---|
Double | The X coordinate. |
Remarks
Specify the annotation’s PositionX
and PositionY properties to position the annotation relative to the top left corner of the chart container. Such annotation is unanchored – it does not point to any chart element.
<DxChartAnnotation PositionX="900"
PositionY="230"
Type="ChartAnnotationType.Image">
<DxChartAnnotationImage Url="@StaticAssetUtils.GetImagePath("AppleStock/stock.svg")"
Width="40"
Height="40" />
</DxChartAnnotation>
You can also use pixel and chart coordinates simultaneously to move the anchored annotation to the specified position.
Refer to the DxChartAnnotationBase topic for more information about chart annotations.
See Also