Recall & Review
beginner
What is a lollipop chart?
A lollipop chart is a type of data visualization that shows values as dots connected to a baseline by a line, like a lollipop. It helps compare values clearly and simply.
Click to reveal answer
beginner
Why use a lollipop chart instead of a bar chart?
Lollipop charts use less ink and can be easier to read when comparing many values. They highlight the exact value with a dot and reduce visual clutter.
Click to reveal answer
intermediate
Which matplotlib functions are commonly used to create a lollipop chart?
You use plt.stem() or plt.vlines() combined with plt.scatter() to create the lines and dots of a lollipop chart.
Click to reveal answer
intermediate
How do you customize the color and size of dots in a lollipop chart in matplotlib?
Use the 'color' and 's' parameters in plt.scatter() to change dot color and size. For example, plt.scatter(x, y, color='red', s=100).
Click to reveal answer
beginner
What is the main advantage of using lollipop charts for categorical data?
They clearly show differences between categories with minimal visual noise, making it easy to compare values side by side.
Click to reveal answer
What does the 'stem' in plt.stem() represent in a lollipop chart?
✗ Incorrect
The 'stem' is the vertical line connecting the baseline to the dot in a lollipop chart.
Which matplotlib function would you use to add dots on top of lines in a lollipop chart?
✗ Incorrect
plt.scatter() is used to add dots at specific points, perfect for the dots in a lollipop chart.
What is a key visual difference between a bar chart and a lollipop chart?
✗ Incorrect
Lollipop charts show dots connected by lines to a baseline, unlike bar charts which use filled bars.
In matplotlib, how can you change the color of the lines in a lollipop chart?
✗ Incorrect
The 'color' parameter in plt.stem() or plt.vlines() changes the color of the lines (stems) in the chart.
What kind of data is best visualized with a lollipop chart?
✗ Incorrect
Lollipop charts are great for comparing values across categories clearly.
Explain how to create a basic lollipop chart using matplotlib.
Think about lines and dots representing values.
You got /4 concepts.
Describe the advantages of using lollipop charts over bar charts.
Focus on visual clarity and simplicity.
You got /4 concepts.