Basic Usage
Props
Data Props
Data source for the callout. If provided,
x and y should reference column names.X-axis position for the callout. Can be a number, date string, or column reference.
Y-axis position for the callout. Can be a number or column reference.
How to handle empty datasets:
- pass: Silently skip rendering
- warn: Show a warning message
- error: Show an error message
Custom message to display when the dataset is empty.
Label Props
Text displayed in the callout label.
Text color for the label. Can be a color token or CSS color value.
Width of the label box. Use
'fit' to auto-size to content.Padding inside the label box in pixels.
Position of the label relative to the symbol.
Background color of the label box.
Border width around the label in pixels.
Corner radius of the label box in pixels.
Color of the label border.
Style of the label border.
Text Formatting Props
Font size for the label text in pixels.
Text alignment within the label.
Whether to bold the label text.
Whether to italicize the label text.
Whether to preserve whitespace in the label text.
Symbol Props
Shape of the marker symbol.
Fill color of the symbol. Defaults to
color if not specified.Size of the symbol in pixels.
Opacity of the symbol (0-1).
Border width around the symbol in pixels.
Color of the symbol border.
General Props
Default color for the callout (used for symbol and text if specific colors aren’t set).
Examples
Simple Callout
Styled Callout
Custom Symbol
Label Positioning
With Data
peak_day
Multiple Callouts
Formatted Label
Dashed Border
Use Cases
- Peak/trough annotations: Mark significant highs and lows
- Goal indicators: Show targets or thresholds
- Event markers: Highlight important dates or milestones
- Outlier identification: Draw attention to unusual data points
- Benchmark comparisons: Show reference points for comparison
- Trend annotations: Mark inflection points or pattern changes
Notes
- The Callout is a wrapper around the ReferencePoint component with different default styling
- All props are passed through to ReferencePoint with
chartType="Callout" - Works both as a standalone component and overlaid on charts
- Position coordinates should match the scale/units of the associated chart
- Labels automatically avoid overlapping when possible
- Default styling uses muted colors for subtlety; override with
colorprop for prominence