The kind of question narrows the chart to a family. To pick one type from the family, check what each type needs from the table, and whether your table has it.

What common types need

Each chart type has a recipe of field roles (module 2's categories, measures, dates and places):

Question Type Needs
Compare Bar chart one category, one measure
Compare against a reference Variance chart one category, a measure and its budget or target
Change over time Line chart one date (or ordered field), one measure; a category for several lines
Part of a whole Treemap or sunburst one or more nested categories, one measure that adds up
Relationship Scatter plot two measures; one row per thing being compared
Where Filled map one place key, one measure

The recipe isn't just a list of fields. It also says something about their shape: a pie wants a few categories, a line wants an ordered axis, a scatter wants enough rows to show a pattern. Module 3's shape counts are how you check.

Matching the recipe to the table

  1. Name the kind of question. Say it's a relationship: "do players who rebound more also assist more?"
  2. List the types in that family. Scatter plot, bubble chart, regression plot, heatmap.
  3. Check each recipe against the table. A scatter needs two measures: rebounds and assists per game are both measures. A bubble chart needs a third measure for size: points would do. A regression plot needs a predictor and a response: that fits if you think rebounding might explain assists.
  4. Pick the simplest one that answers the question. Here, a scatter plot. Add size or a fitted line only if the reader needs them.

A worked example

Take a table of basketball players, one row per player, with each one's team, position, age and per-game statistics.

"Do players who rebound more also assist more?" is a relationship between two measures. The scatter plot's recipe, two measures and one row per player, fits exactly:

A scatter plot of the "NBA Player Season Stats" dataset: 280 points, each placed by its Sum of ReboundsPerGame and its Sum of AssistsPerGame.
A scatter plot of the "NBA Player Season Stats" dataset: 280 points, each placed by its Sum of ReboundsPerGame and its Sum of AssistsPerGame.

How to read this Scatter plot Try it in the explorer

Now take a company's headcount by division and department. "How is the company made up?" is part of a whole, and the departments nest inside divisions. A sunburst's recipe is nested categories and a measure that adds up, and headcount adds up:

A sunburst chart of the "Company Org Chart with Headcount" dataset: Division in the inner ring, Department around it, sized by Sum of Headcount.
A sunburst chart of the "Company Org Chart with Headcount" dataset: Division in the inner ring, Department around it, sized by Sum of Headcount.

How to read this Sunburst chart Try it in the explorer

When the table is missing something

Sometimes the recipe asks for a field the table doesn't have:

  • No date for a change-over-time question. Look for one in the source, or ask a different question.
  • No measure: you can still count rows. "How many complaints per neighborhood?" works without a cost field.
  • No place key for a map: compare the places with bars, or add codes or coordinates at the source.
  • Too many values in the category: group, filter or choose a form for many parts (module 4).

Try it

Take one of the questions you wrote in the last lesson. List two or three types from its family, write each one's recipe, and tick the fields your table has. The type whose recipe your table meets, and that answers the question most directly, is your chart.

Then try three questions on real gallery tables. Pick the type you'd use; the product's own rules answer, and where the gallery holds that chart built on the table, you can open it.

Loading the interactive...

Loading the interactive...

Loading the interactive...

The next lesson looks at what happens when you ask for a chart the table can't support, and why that answer is useful.