TAnnotationTool provides flexible positioning and styling options.
Overview
The Annotation Tool is a Chart Tool that displays text at specific positions on the chart. It supports:- Fixed position annotations
- Callout arrows pointing to specific data points
- Custom formatting and styling
- Interactive positioning
- Multiple annotations per chart
TeeTools.pas
Basic Usage
Adding an Annotation Tool
Tool_Annotation.pas:18
Activating/Deactivating
Tool_Annotation.pas:44
Positioning
Fixed Position
Place annotation at specific chart coordinates:Position Constants
Callouts
Callouts are arrows that point from the annotation to a specific chart location.Basic Callout
Tool_AnnotationCallout.pas:82
Styling the Callout Arrow
Tool_AnnotationCallout.pas:103
Interactive Callout Example
Create a callout that follows the mouse:Tool_AnnotationCallout.pas:43
Click-to-Position Callout
Tool_AnnotationCallout.pas:129
Text Formatting
Multi-Line Text
Font Properties
Text Alignment
Shape and Background
Shape Properties
Shadow
Gradient Background
Interactive Features
Click Event
Tool_AnnotationClick.pas
Dragging and Resizing
3D Annotations
Annotations work in 3D charts:Common Use Cases
Highlight Peak Value
Data Point Labels
Label specific interesting points:Threshold Indicators
Mark threshold levels:Chart Watermark
Editing Annotations
Use the built-in editor for interactive configuration:Tool_Annotation.pas:39
Related Topics
Legends
Customize chart legends
Chart Tools
Other interactive chart tools
