Search⌘ K
AI Features

Adding Custom Annotations

Explore how to create and customize annotations in Plotly scatter plots. Learn to highlight important data points, use arrows and styled boxes, and add interactive elements like links for better data storytelling.

We'll cover the following...

Graph annotations

We will explore the concept of annotating a graph with a detailed exercise.

Suppose we want to explore our dataset a little bit further, particularly with regard to individuals who are between the age of 18 and 30.

We will first filter these rows with the following pandas code, where emp2 is our new filtered dataset:

emp2 = employees.loc[employees.Age.between(18, 30)].copy()

With this filtered dataset, let’s extract the age and monthly income of the highest earner using the ...