Annotation with arrows
📖 Scenario: You are creating a simple line chart to show sales over 5 months. You want to highlight the highest sales point with an arrow and a label.
🎯 Goal: Build a line plot of sales data and add an annotation with an arrow pointing to the highest sales point.
📋 What You'll Learn
Create a list called
months with values: 'Jan', 'Feb', 'Mar', 'Apr', 'May'Create a list called
sales with values: 200, 450, 300, 500, 400Create a variable called
max_sales that stores the highest sales valueCreate a variable called
max_month that stores the month corresponding to the highest salesPlot the sales data as a line chart with
months on the x-axis and sales on the y-axisAdd an annotation with an arrow pointing to the highest sales point with the text 'Highest Sales'
💡 Why This Matters
🌍 Real World
Annotations with arrows help highlight important points in charts, making reports clearer and easier to understand.
💼 Career
Data analysts and scientists often use annotations to explain trends or outliers in data visualizations for stakeholders.
Progress0 / 4 steps