Stem-and-Leaf Plots, Bar Graphs & Line Graphs
Learning Objectives
- Create and interpret stem-and-leaf plots and dot plots
- Create and interpret bar graphs
- Create and interpret line graphs of data
Why This Matters
Every December, Spotify Wrapped hits your phone with a dashboard that uses bar graphs for your top genres, line graphs for your listening trends across months, and detailed breakdowns that preserve individual song data. The data team behind Wrapped didn't pick those visualizations randomly -- each one foregrounds a different pattern in the same listening history. Bar graphs answer "what did I listen to most?", line graphs answer "when did my habits change?", and detailed tables answer "which exact songs drove the numbers?" Choosing the wrong plot for the wrong question buries the answer in plain sight.
How to Use This Simulation
- Choose a dataset from the dropdown -- the same data appears simultaneously in a stem-and-leaf plot, a bar graph, and a line graph.
- Click any data point in any plot and watch it light up across all three visualizations to see how the same value appears differently in each.
- Toggle the "Show as Dot Plot" button above the stem-and-leaf plot to see an alternative way to preserve individual data values.
- Check the Explanation Panel below -- it updates as you interact and tells you what each plot type reveals.
Stem-and-Leaf Plot
Bar Graph (categorical comparison)
Line Graph (trend over time)
What's Happening
Quick Check
A student creates a line graph showing the average GPA of five college majors (Biology, English, History, Math, Nursing) connected by lines from left to right. A classmate says the graph is misleading. Why?
Try This
Load the "Coffee Shop Daily Revenue" preset. Look at the stem-and-leaf plot. Which stem has the most leaves? What does that tell you about where daily revenues cluster? Now look at the line graph for the same data. Does it show an upward trend, a downward trend, or no trend? Write one sentence explaining why the stem-and-leaf plot can't show you that trend.
A campus newspaper editor wants to display data on dining hall meal transactions: 850 breakfast, 1,420 lunch, 1,180 dinner, tracked daily over 4 weeks. The editor is considering a line graph connecting "Breakfast → Lunch → Dinner." Explain in one sentence why a line graph is inappropriate for comparing meal types. Then load any preset in the simulation and compare the bar graph with the line graph. What does the bar graph show that a line graph cannot for unordered categories?
Load the "Student Weekly Study Hours" preset. A product manager asks: "Are students studying more as the semester progresses?" A marketing manager asks: "Which phase of the semester should we schedule our tutoring promotion?" Identify which plot type you would show each manager and explain in two sentences why you chose different plots for the same data and what each one reveals that the other hides.
Instructor Notes
Teaching Notes
This simulation is most effective when you ask students to click a single data point in the stem-and-leaf plot and watch it light up in the bar graph and line graph. The cross-plot highlighting produces the conceptual click: the same number plays three different roles depending on which visualization frames it. An individual revenue value of $155 is a leaf in the stem-and-leaf plot, a contribution to Thursday's average in the bar graph, and one point in a growth trajectory in the line graph.
The bar-graph-vs-histogram distinction is the highest-value teaching moment in this simulation. Point out the gaps between bars and ask students why they're there. The answer -- that gaps signal categorical (qualitative) data with no continuity between groups -- connects directly to the variable-type vocabulary from Sim 2 and sets up the graph-choosing work in Sim 5.
Common Student Errors
- Confusing bar graphs with histograms. Bar graphs have gaps between bars (qualitative categories); histograms have adjacent bars (quantitative bins). This is the most important visual distinction to reinforce.
- Constructing stem-and-leaf plots with leaves in data-collection order instead of sorted ascending within each stem.
- Drawing line graphs for unordered categories (countries, product names, majors). Lines imply continuity between consecutive points, which is meaningless for unordered data.
- Assuming all three plot types show the same information. Each foregrounds different patterns: distribution shape vs category comparison vs temporal trend.
Discussion Questions
- If you have 500 data points, would you use a stem-and-leaf plot or a histogram? Why does dataset size matter for this choice?
- A news site shows a line graph of GDP for 10 countries. What's wrong with this visualization, and what should they use instead?
- Can you think of a dataset where all three plot types (stem-and-leaf, bar graph, line graph) would each reveal something the others miss?
Exam Connection
Exam questions commonly present a dataset and ask students to identify the appropriate graph type, or present a graph and ask students to interpret it. This simulation directly prepares students for both formats. The Stretch challenge previews the graph-choosing skill that Sim 5 formalizes. The stem-and-leaf plot construction convention (sorted leaves, key/legend) appears frequently on exams.