aspnet-15840-components-chart-control-visual-elements-annotation.md
An Annotation is an explanatory image or text that can be anchored to a series point, a diagram coordinate (two axis values), or an arbitrary pixel coordinate on a chart’s surface.
Although annotations reside in the collection of the element to which they are anchored (chart, pane or series point), all annotations that are displayed in a chart control can be centrally accessed from its WebChartControl.AnnotationRepository property.
An annotation can be positioned either absolutely (docked to a corner of its parent container), or relatively (with a specified rotation angle and connector length to its anchor point).
The table below lists the main properties that affect the element’s appearance and functionality.
|
Class
|
TextAnnotation and ImageAnnotation
| |
Availability
|
WebChartControl.AnnotationRepository, WebChartControl.Annotations, XYDiagramPaneBase.Annotations and SeriesPoint.Annotations
| |
Layout and Position
|
Annotation.AnchorPoint, Annotation.ShapePosition, Annotation.LabelMode and Annotation.ZOrder
| |
Interactivity
|
Annotation.RuntimeAnchoring, Annotation.RuntimeMoving, Annotation.RuntimeResizing and Annotation.RuntimeRotation
| |
Appearance
|
Annotation.ShapeFillet, Annotation.ShapeKind, ImageAnnotation.SizeMode and TextAnnotation.AutoSize
| |
Visibility
|
|
See Also
Annotations Position and Layout
How to: Create a Text Annotation Anchored to a Series Point
How to: Create an Image Annotation Anchored to a Chart or Pane