Adding Annotations
Learn the annotation types and how to implement them in Altair.
We'll cover the following
An annotation is a piece of text, symbol, or graphic added to a chart to provide context, explain trends, call attention to important data points, or provide additional details that may not be immediately apparent from the chart itself.
Annotation types
Consider the following types of annotations:
Text: It’s used to label axes, add titles, explain data, or set the context. In Altair, we use
mark_text()
to add a textual annotation to a chart. This is the sample dataset for the example below.
Get hands-on with 1400+ tech skills courses.