Find a course

Module 1: Why Visualize DataLesson 2 of 1111 min

Know Your Data and Your Question

Classify variables as categorical, ordinal or quantitative, identify the question behind a chart, and consider the audience before choosing a visual.

Step 1 of 12Learn

The chart that answered the wrong question

Maya, an analyst at a hotel group, was asked how guest satisfaction had changed. She built a beautiful map with each hotel as a circle, sized by number of reviews and colored by average rating. Leadership looked at it politely, then asked, "So is it getting better or worse?" The map couldn't say. It showed place and size, not change over time.

She rebuilt it as a line chart of the average rating by month, with the group target as a dashed line and the three lowest hotels as a small table beside it. The meeting took ten minutes.

Most chart problems start before any chart is drawn. Choosing a visual depends on two things:

  1. The data: what kinds of variables you have, how many values and how they relate.
  2. The question: what the audience needs to compare or understand.

Software makes it tempting to click through chart types until one looks nice. A faster and better approach is to name the data and the question first. Then the right chart usually becomes obvious, and the wrong ones, like a map for a time question, rule themselves out.

Step 2 of 12Learn

Three kinds of variables

Every column in a dataset holds one of three broad kinds of data.

Categorical (nominal) data are labels with no natural order: product type, country, department, payment method. You can count them and compare counts, but "Electronics" isn't more or less than "Clothing." Order them by value or alphabetically for clarity.

Ordinal data are categories with a meaningful order but uneven or unknown gaps: survey answers from "strongly disagree" to "strongly agree," T-shirt sizes, education levels, customer tiers. The order must be preserved in any chart. Sorting satisfaction levels by count instead of by their natural order is a classic mistake that scrambles the meaning.

Quantitative data are numbers where differences mean something: revenue, temperature, age, number of orders, time on site. They can be discrete (counts like 3 orders) or continuous (measurements like 3.27 kg). Dates and times are a special kind of ordered, quantitative data and get special treatment on charts.

A useful test: can you sensibly calculate an average? You can average revenue, but not countries. You can code survey answers as 1 to 5 and average them, a common practice, but remember the gaps between "agree" and "strongly agree" aren't guaranteed to be equal, so medians and the full distribution are often more honest.

The data type limits your choices: quantitative values can be shown by position or length, while categories are usually shown as separate bars, groups or colors.

Step 3 of 12Practice · Diagram

Kinds of variables

T-shirt sizes (S, M, L, XL) belong on which branch?

Tap the shape that answers the question, then press Check.

Kinds of variablesHierarchy diagram: A variable (column), Categorical (nominal), Ordinal, Quantitative, Discrete, Continuous.A variable(column)Categorical(nominal)OrdinalQuantitativeDiscreteContinuous
A variable (column)
Categorical (nominal)

Labels with no order: country, department, payment method.

Ordinal

Ordered categories with uneven gaps: survey answers, T-shirt sizes.

Quantitative

Numbers where differences mean something.

Discrete

Counts: 3 orders, 12 visits.

Continuous

Measurements: 3.27 kg, 41.5 minutes.

Step 4 of 12Practice · Sort into groups

Classify each variable from a customer dataset.

Tap an item, then tap its group (or drag it there).

Step 5 of 12Learn

Five common questions

Most business and everyday charts answer one of five types of question. Naming yours narrows the chart choice dramatically.

  1. Comparison or ranking: How do categories compare? Which is biggest? "Which region sold the most last quarter?" Typical charts: bar chart, dot plot.
  2. Change over time: How has something moved? Is there a trend or seasonality? "How have monthly signups changed since launch?" Typical charts: line chart, column chart for a few periods.
  3. Composition (part to whole): What makes up the total? "What share of support tickets comes from each channel?" Typical charts: stacked bar, a simple pie for a few parts, treemap.
  4. Distribution: How are values spread? Where do most fall, and are there outliers? "How long do deliveries take?" Typical charts: histogram, box plot.
  5. Relationship: Do two variables move together? "Do customers who spend more also return more often?" Typical charts: scatter plot.

Some questions combine types, such as composition over time (stacked area or stacked columns) or comparison of distributions across groups (box plots side by side). Geographic questions add a sixth flavor: if location itself matters, such as delivery times by state, a map may help, but only if the pattern is truly about place. Maya's satisfaction map failed because her question was about time, not place.

Step 6 of 12Practice · Match the pairs

Match each question to its question type.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. Which of our six stores had the highest sales in June?
  2. How did website traffic change week by week this year?
  3. What share of our budget goes to each department?
  4. How spread out are customer wait times, and are there extreme waits?
  5. Do higher ad budgets go with more leads across campaigns?

Step 7 of 12Compare

From question type to chart

AspectQuestion typeTypical charts
Which is biggest?Comparison or rankingBar chart, dot plot
How has it moved?Change over timeLine chart
What makes up the total?CompositionStacked bar, simple pie, treemap
How are values spread?DistributionHistogram, box plot
Do two things move together?RelationshipScatter plot

Step 8 of 12Note

Step 9 of 12Learn

Know your audience

The same data and question can call for different charts depending on who is reading.

Executives usually need the headline and its implications: one or two simple charts, the key number with context, and a recommendation. They often read on a phone between meetings.

Specialists and analysts may want detail: distributions instead of averages, confidence intervals, more categories and the ability to filter.

The general public needs familiar chart types, plain-language titles, minimal jargon and careful explanation of anything unusual, like a logarithmic scale.

Mixed audiences benefit from layers: a clear headline chart, with detail available in an appendix, a tooltip or a linked table.

Also consider how the chart will be seen. A chart on a projected slide must be readable from the back of the room, which means large text, few elements and high contrast. A chart in a written report can hold more detail, because readers can study it. An interactive dashboard can hide detail behind filters and hover labels. A chart shared in a chat app may be viewed on a small screen, often without your explanation.

Ask: Who is reading? What do they already know? What decision will they make? How long will they look? The answers shape the level of detail, the labels and even the chart type.

Step 10 of 12Compare

Same data, different readers

AspectExecutivesAnalystsGeneral public
NeedsHeadline and implicationDetail and uncertaintyPlain meaning
ChartsOne or two simple onesDistributions, filtersFamiliar types only
WordsRecommendationMethod notesNo jargon, explain scales
Time spentSeconds, often on a phoneMinutes to hoursA quick glance

Step 11 of 12Practice · What would you do?

What would you do?

Jamal has survey data with satisfaction ratings (very dissatisfied to very satisfied) for 4 product lines. He needs one chart for a 5-minute leadership update on which product line has a satisfaction problem. Which plan is best?

Step 12 of 12Practice · Choose one

A team wants to show how average delivery time varies across all 50 US states, and suspects the pattern is regional. Which type of question is this mainly?