Skip to main content

📊 Lesson 5.2: Charts & Sparklines

A column of numbers hides its story; a good chart reveals it in a glance. In this lesson you'll learn to pick the right chart for the question you're answering, build and polish it in the Chart editor, and add tiny in-cell SPARKLINE charts that turn a summary table into a mini dashboard.

📚 What You'll Learn

By the end of this lesson, you will be able to:

  • Choose a chart type that matches the question you're asking
  • Insert and customize charts with the Chart editor (Setup and Customize)
  • Use the common types well: column/bar, line, pie, combo, scatter
  • Add tiny in-cell SPARKLINE charts to a summary table
  • Keep charts honest and readable, and move them into Docs or Slides

⏱️ Estimated Time: 50 minutes

🎯 Project: Build two or three charts from your data (a category comparison and a trend), then add SPARKLINE mini-charts in a summary column.

In This Lesson

Why Charts — Matching Type to Question

The most common charting mistake isn't a technical one — it's picking the wrong type. A chart is an answer to a question, and different questions want different shapes. Before you insert anything, ask what you're trying to show:

graph TD Q["❓ What is the question?"] --> A["Comparison
use a column or bar chart"] Q --> B["Trend over time
use a line chart"] Q --> C["Parts of a whole
use a pie chart, sparingly"] Q --> D["Relationship between two numbers
use a scatter chart"]
  • Comparing categories ("which region sold most?") → column or bar chart.
  • Change over time ("how did sales trend this year?") → line chart.
  • Parts of a whole ("what share is each category?") → pie chart, but only with a few slices and honest labels.
  • Relationship ("does price relate to sales?") → scatter chart.

🧠 Mindset

Don't decorate — communicate. A chart's job is to make one point obvious faster than a table could. If a chart doesn't make something clearer, a clean table is the better choice. Every element (a color, a gridline, a legend) should earn its place or go.

Inserting & Editing a Chart

The workflow is simple:

  1. Select your data — including the header labels, which become the chart's labels. A pivot table or a small summary table is ideal source data.
  2. Insert → Chart. Sheets guesses a type; don't worry if it guesses wrong.
  3. The Chart editor opens on the right with two tabs:
    • Setup — the chart type, the data range, and which rows/columns are the series vs the labels (the "X axis").
    • Customize — titles, axis labels and ranges, colors, legend position, gridlines, data labels, fonts.

A chart is live: it's linked to its source range, so when the data changes, the chart redraws automatically. Move it around by dragging, or use the chart's three-dot menu to cut/copy it, put it on its own tab, or download it as an image.

✅ Pro Tip

Chart from a summary, not raw rows. A pivot table or a small aggregated table (like the "total by category" you built earlier) gives a clean chart; pointing a chart at thousands of raw rows usually produces a mess. Summarize first, then visualize.

The Common Chart Types

TypeBest forWatch out for
Column / BarComparing values across categoriesToo many bars gets cluttered; sort them for impact
LineTrends over timeOnly use time (or another ordered scale) on the X axis
Pie / DonutA few parts of one wholeHard to read past ~5 slices; never for time or comparison
ComboTwo related measures (e.g. bars + a line)Keep it simple; two axes can mislead
ScatterRelationship between two numeric variablesCorrelation is not causation

Column vs bar is just orientation (vertical vs horizontal); bar charts are handy when category names are long. When in doubt between fancy options, a clean sorted column chart or a simple line chart answers most real questions.

SPARKLINE — Tiny In-Cell Charts

Sometimes you don't want a big chart — you want a tiny visual right beside a number. That's SPARKLINE: a mini chart that lives inside a single cell, perfect for a summary table or dashboard where each row gets its own little trend.

A simple line sparkline of a row of values:
=SPARKLINE(B2:M2)

A colored bar chart in a cell:
=SPARKLINE(B2:M2, {"charttype","column"; "color","#0f9d58"})

A win/loss sparkline (positive vs negative):
=SPARKLINE(B2:M2, {"charttype","winloss"; "negcolor","red"})

The second argument is a set of options in curly braces — pairs of an option name and its value. The main charttype values are line (the default), column, bar, and winloss. Because a sparkline is just a formula in a cell, you can copy it down a column so every row gets its own mini chart.

💡 Where sparklines shine

Picture a summary table: one row per product, twelve monthly totals, and a final "Trend" column with a sparkline showing each product's shape at a glance. That single column turns a wall of numbers into an instantly scannable story — and it's exactly the kind of touch that makes the capstone dashboard feel professional.

Honest, Clear Charts

A chart can mislead as easily as it can clarify — sometimes by accident. A few principles keep yours honest:

  • Start bar/column axes at zero. A truncated axis exaggerates small differences into dramatic-looking gaps. (Line charts showing a trend can sometimes zoom in, but label it clearly.)
  • Label directly. A clear title that states the takeaway ("West leads Q1 sales") and labeled axes beat a mystery chart the reader has to decode.
  • Don't over-slice pies. More than about five slices and nobody can compare them; a sorted bar chart is clearer.
  • Use color with purpose. Highlight the one series that matters; don't rainbow everything. Keep enough contrast for readers in both light and dark, and don't rely on color alone to convey meaning (accessibility).
⚠️ Important Note: Charts and pivot tables can be copied straight into Google Docs and Slides and stay linked to the source sheet — update the data and click "Update" in the doc to refresh the chart. That's a great way to keep a report always current — try it with your capstone charts in Lesson 8.3.

🎯 Project: A Small Chart Panel

You'll build a tidy little visualization panel from data you already have — the kind that could sit on a dashboard.

🏋️ Charts + sparklines

Objective: Create a comparison chart, a trend chart, and a sparkline column.

Instructions (about 15 minutes):

  1. (3 min) Make a small summary table: categories with a total each (reuse a pivot or a SUMIF summary), plus a small table of monthly totals.
  2. (4 min) Sort the category totals largest-first (select the table, then Data → Sort range, Z → A on the total; for a pivot, sort it in the pivot editor) so the bars come out in order. Then select the totals and Insert → Chart. Set it to a column chart, add a clear title, and confirm the axis starts at zero.
  3. (4 min) Select the monthly totals and insert a line chart to show the trend. Title it with the takeaway.
  4. (3 min) In a "Trend" column beside a few rows of monthly data, add =SPARKLINE(B2:M2) and copy it down.
  5. (1 min) Arrange the two charts and the sparkline column neatly together — a first taste of dashboard layout.
💡 Hint — sparkline options
Line (default):   =SPARKLINE(B2:M2)
Green columns:    =SPARKLINE(B2:M2, {"charttype","column";"color","#0f9d58"})
Win/loss:         =SPARKLINE(B2:M2, {"charttype","winloss"})

Remember: chart from a summary, not thousands of raw rows, for a clean result.

✅ Project Completion Checklist

  • A column/bar chart compares categories, sorted, with a zero-based axis and a clear title
  • A line chart shows a trend over time
  • A SPARKLINE column shows a mini trend per row
  • The charts read clearly and aren't misleading
  • Everything is arranged into a tidy little panel

🎯 Quick Quiz

Question 1: You want to show how monthly sales changed across the year. Which chart fits best?

Question 2: What is a SPARKLINE?

Best Practices for Charts

✅ Do's

  • Pick the type by the question — comparison, trend, part-of-whole, relationship.
  • Chart from summaries and start value axes at zero.
  • Title with the takeaway so the point lands instantly.

❌ Don'ts

  • Don't truncate a bar axis to exaggerate differences.
  • Don't over-slice pies or rainbow every series.
  • Don't rely on color alone to convey meaning — label directly for accessibility.

💡 Pro Tips

  • A sparkline "Trend" column instantly upgrades a summary table.
  • Paste charts into Docs/Slides linked, so they refresh with the data.

📓 Learning Journal

Keep a learning journal as you work through this course — a document, a note, or a tab in your own spreadsheet. After each lesson, take a few minutes to write down:

  • Key concepts you learned
  • Techniques that clicked for you
  • Questions or confusion points to revisit
  • Ideas you want to try in your own sheets
  • Your progress and feelings about learning this

✍️ This lesson's prompt: Find a chart in the news or a report that felt misleading or confusing. What made it hard to read — a truncated axis, too many slices, no clear title? How would you fix it? Noticing bad charts sharpens your own.

📝 Lesson Summary

🎓 Key Takeaways

  • Choose a chart by the question: column/bar for comparison, line for trends, pie sparingly for parts of a whole, scatter for relationships.
  • Insert → Chart, then use the Setup and Customize tabs; charts stay linked and update live.
  • SPARKLINE draws a tiny chart in one cell — great for per-row trends.
  • Keep charts honest: zero-based value axes, clear titles, few slices, purposeful color.

🎉 What You've Accomplished

You can now turn a table into a picture that makes its point at a glance — and you know how to keep that picture honest. Combined with pivot tables, you've got the two big tools for making data understandable to other people, which is often the whole job.

❓ Common Questions at This Stage

My chart looks empty or wrong — why?

Usually the data range or the "switch rows/columns" setting in the Setup tab is off. Check that you selected the labels along with the values, and that Sheets is treating the right row/column as the labels.

Can a chart update automatically?

Yes — a chart is linked to its source range, so editing the data redraws the chart. If it's charting a fixed range, extend the range (or chart a whole column) so new rows are included.

Pie or bar for showing shares?

With just 2–4 categories a pie is fine; with more, a sorted bar chart is far easier to read. When in doubt, bar.

🔭 Looking Ahead

Next — Lesson 5.3: Conditional Formatting — we make the cells themselves react to their values, so problems and highlights jump out automatically. It's the finishing touch that makes a tracker feel alive.

✅ Before the Next Lesson

  • Keep your chart panel — you'll reuse charts in the project and capstone modules
  • Try one sparkline column on a summary table
  • Write your Learning Journal entry for this lesson

📚 Additional Resources

🌟 Encouragement for the Journey

Numbers tell; pictures show. You just learned to make your data show — clearly and honestly. That's a skill that makes everything you build more persuasive. One more visualization tool to go. 📊