Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Dock an Annotation to a Chart

This example demonstrates how to anchor an annotation to a chart surface point as shown in the following image:

annotation-chart-anchor-point

To do this, specify the ChartAnchorPoint.X and ChartAnchorPoint.Y properties.

<dxc:Annotation Content="Annotation #3">
    <dxc:Annotation.AnchorPoint>
        <dxc:ChartAnchorPoint X="100" 
                              Y="220"/>
    </dxc:Annotation.AnchorPoint>
    <dxc:Annotation.ShapePosition>
        <dxc:RelativePosition ConnectorLength="80" 
                              Angle="-20"/>
    </dxc:Annotation.ShapePosition>
</dxc:Annotation>