Annotation Class
An additional note which can be anchored to chart, panes or series point.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v18.2.dll
Declaration
public class Annotation :
ChartNotificationElement,
IWeakEventListener,
IHitTestableElement,
IInteractiveElement
Related API Members
The following members return Annotation objects:
Remarks
For more information about annotations, refer to the Annotations document.
Example
This example demonstrates how to anchor an annotation to a series point.
To do this, specify the SeriesPointAnchorPoint.SeriesPoint property.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-anchor-annotations-to-various-points-t378313.
<dxc:Annotation Content="Annotation #1">
<dxc:Annotation.AnchorPoint>
<dxc:SeriesPointAnchorPoint SeriesPoint="{Binding ElementName=seriesPoint}"/>
</dxc:Annotation.AnchorPoint>
<dxc:Annotation.ShapePosition>
<dxc:RelativePosition Angle="60"
ConnectorLength="50"/>
</dxc:Annotation.ShapePosition>
</dxc:Annotation>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Annotation class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.