({{, (RefLink[Annotation, paclet:ref/Annotation])[expr,data]
represents an expression expr, with annotation data.}, {, (RefLink[Annotation, paclet:ref/Annotation])[expr,data,"type"]
specifies the type of annotation being given.}})

OpenersNotesSection(Spacer1)Details

(RefLink[Annotation, paclet:ref/Annotation])[expr,data] displays as expr.

(RefLink[Annotation, paclet:ref/Annotation]) can be used with graphics or any other expression.

(RefLink[Annotation, paclet:ref/Annotation]) acts as an inert wrapper for storing annotations in expressions.

With particular "type" specifications, annotations are picked up by various built-in functions:

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Dynamically get the annotation when the mouse enters the disk:

{Annotation[Graphics[Disk[]],"An annotation","Mouse"],Dynamic[MouseAnnotation[]]}

Annotate curves in a plot:

Plot[{Annotation[Sin[x],"Sine","Mouse"],Annotation[Cos[x],"Cosine","Mouse"]},{x,0,2π},PlotStyle->Thick]

Dynamic[MouseAnnotation[]]

OpenersExampleSection1(Spacer1)Properties & Relations  (1)

(RefLink[Tooltip, paclet:ref/Tooltip]) and (RefLink[Hyperlink, paclet:ref/Hyperlink]) annotations can be replaced by their respective functions:

g1=Graphics[{Annotation[Disk[],"http://www.wolfram.com","Hyperlink"],Annotation[Disk[{2,2}],"A Disk","Tooltip"]}];

Export[FileNameJoin[{$TemporaryDirectory,"test1.html"}],g1]

An equivalent expression:

g2=Graphics[{Hyperlink[Disk[],"http://www.wolfram.com"],Tooltip[Disk[{2,2}],"A Disk"]}];

Export[FileNameJoin[{$TemporaryDirectory,"test2.html"}],g2]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Tooltip, paclet:ref/Tooltip])  ▪  (RefLink[Mouseover, paclet:ref/Mouseover])  ▪  (RefLink[StatusArea, paclet:ref/StatusArea])  ▪  (RefLink[WindowStatusArea, paclet:ref/WindowStatusArea])  ▪  (RefLink[MouseAnnotation, paclet:ref/MouseAnnotation])  ▪  (RefLink[CurrentValue, paclet:ref/CurrentValue])  ▪  (RefLink[TagBox, paclet:ref/TagBox])  ▪  (RefLink[CellTags, paclet:ref/CellTags])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Formatted Output, paclet:tutorial/FormattedOutput])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Viewers and Annotation, paclet:guide/ViewersAndAnnotation])}, {▪(RefLinkPlain[Dynamic Visualization, paclet:guide/DynamicVisualization])}, {▪(RefLinkPlain[Creating Web Pages, paclet:guide/CreatingWebPages])}, {▪(RefLinkPlain[Code Compilation, paclet:guide/CodeCompilation])}, {▪(RefLinkPlain[Annotating & Combining Graphics, paclet:guide/AnnotatingAndCombiningGraphics])}, {▪(RefLinkPlain[Symbolic Graphics Language, paclet:guide/SymbolicGraphicsLanguage])}, {▪(RefLinkPlain[Graphics Annotation & Appearance, paclet:guide/GraphicsAnnotationAndAppearance])}})}})