Grade by Grade
D. Statistical Analysis · One-Variable Data Analysis

Graphing Categorical Data: Bar Graphs and Circle Graphs

D1.3About 65 minutes
Learning goals
  • I can choose an appropriate graph for one-variable data based on the type of data.
  • I can draw an accurate bar graph and an accurate circle graph, calculating each sector angle.
  • I can compare two groups of different sizes with a relative-frequency (percent) bar graph.
  • I can explain when a circle graph should not be used.

Words to know

bar graph
A graph that uses separated bars of equal width to show the frequency (or relative frequency) of each category. The bars do not touch, because the categories are separate.
circle graph
A graph (also called a pie chart) that shows each category as a sector of a circle. The sector angle is the category's relative frequency × 360°.
sector angle
The angle at the centre of a circle graph for one category.
double (side-by-side) bar graph
A bar graph with two bars for each category, one for each group being compared.
Pareto chart
A bar graph of nominal data with the bars sorted from tallest to shortest, often with the categories that matter most first.

The right picture for the right data

A school council wants to run a winter safety campaign and needs to know how students get to school. They survey 240 students. The answers are categories: school bus, car, walk, transit, bike or other. You cannot draw a histogram of categories, and you cannot find their mean. So which graph should they use?

The curriculum asks you to generate graphs "based on the type of data provided". This lesson covers the graphs for categorical data. The next lesson covers graphs for numerical data.

Type of dataGood graphsExamples
Categorical, nominalbar graph, circle graph, Pareto chartfavourite sport, mode of transport
Categorical, ordinalbar graph with categories kept in ordersurvey ratings, T-shirt sizes
Numerical, discrete with few valuesbar graph or dot plotpeople in a home, goals in a game
Numerical, continuous (or many values)histogram, frequency polygon, stem-and-leaf plot, box plotheights, times, masses
Choosing a graph for one-variable data.

Bar graphs

  • Put the categories on one axis and the frequency (or percent) on the other.
  • All bars have the same width and there are gaps between them. The gaps say "these are separate categories". (A histogram has no gaps, because its classes form a continuous number line.)
  • The frequency axis must start at 0 and have an even scale, so the lengths of the bars are proportional to the frequencies.
  • For nominal data you may order the bars any way you like. Sorting them from tallest to shortest (a Pareto chart) makes the most common categories easy to see.
  • For ordinal data, keep the natural order (strongly disagree → strongly agree). Sorting by height would scramble the meaning.
How 240 students get to school in January020406080100School bus84Car66Walk54Transit30Bike/other6mode of transportnumber of students
A bar graph of the transport survey. Equal widths, gaps between bars and a scale that starts at 0. The bars are already sorted from tallest to shortest, so this is also a Pareto chart.

Circle graphs

A circle graph shows how a whole is split into parts. Each sector's angle is proportional to its frequency:

sector angle = (f ÷ n) × 360°

Use a circle graph only when:

  1. the categories are parts of one whole (every individual is in exactly one category), and
  2. there are only a few categories (about 6 or fewer; thin slivers are hard to read).

Do not use a circle graph when people could choose more than one answer ("Which apps do you use?"), because the percents add to more than 100% and there is no whole to divide.

Worked example

Example 1: Calculating sector angles

Of 240 students surveyed in January: school bus 84, car 66, walk 54, transit 30, bike or other 6. Find the sector angles for a circle graph.

  1. Check the total: 84 + 66 + 54 + 30 + 6 = 240 ✓.
  2. School bus: (84 ÷ 240) × 360° = 0.35 × 360° = 126°.
  3. Car: (66 ÷ 240) × 360° = 0.275 × 360° = 99°.
  4. Walk: (54 ÷ 240) × 360° = 0.225 × 360° = 81°.
  5. Transit: (30 ÷ 240) × 360° = 0.125 × 360° = 45°.
  6. Bike or other: (6 ÷ 240) × 360° = 0.025 × 360° = 9°.
  7. Check: 126 + 99 + 81 + 45 + 9 = 360° ✓.

Sector angles 126°, 99°, 81°, 45°, 9°. Draw each with a protractor, starting from a radius at the top and going clockwise.

How 240 students get to school in JanuarySchool bus: 84 (126°)Car: 66 (99°)Walk: 54 (81°)Transit: 30 (45°)Bike/other: 6 (9°)
The circle graph for the same survey. The school bus sector (126°) is just over a third of the circle. The 9° sector is a thin sliver: with many categories like that, a bar graph would be clearer.

Comparing two groups: use percents

A second school, Lakeview, surveyed only 80 students: school bus 12, car 30, walk 18, transit 15, bike or other 5. If you put Lakeview's counts beside Hilltop's counts (Hilltop is the school with 240 students), every Lakeview bar would look small simply because fewer students were asked. To compare groups of different sizes, graph relative frequencies (percents) in a double bar graph.

Worked example

Example 2: A relative-frequency comparison

Convert both schools' results to percents and describe the main difference.

  1. Hilltop (n = 240): bus 84 ÷ 240 = 35%, car 27.5%, walk 22.5%, transit 12.5%, bike/other 2.5%.
  2. Lakeview (n = 80): bus 12 ÷ 80 = 15%, car 30 ÷ 80 = 37.5%, walk 22.5%, transit 18.75%, bike/other 6.25%.
  3. Compare: walking is the same at both (22.5%). Hilltop students rely much more on the school bus (35% vs 15%), while Lakeview students are more often driven (37.5% vs 27.5%) or take transit (18.75% vs 12.5%).

In counts, Hilltop has more students in every category. In percents, the real difference appears: Hilltop is a bus school, Lakeview is a car-and-transit school.

Percent of students using each mode: two schools0%10%20%30%40%School busCarWalkTransitBike/otherHilltop (n = 240)Lakeview (n = 80)percent of students
A double bar graph of percents, not counts, so the two schools are compared fairly even though one surveyed 3 times as many students.
Just for fun

Why did the circle graph refuse dessert?

It was already 360 degrees of pie.

Technology

In Google Sheets or Excel, select the category column and the frequency column, then Insert → Chart, and choose Column (bar) or Pie. Always check that the software did not start the value axis above 0, did not add a 3-D effect (3-D tilts make front slices look bigger) and that the title and axis labels say what was measured, from whom, and when.

Hands-on activity

Survey your household's pantry

You need: your kitchen cupboards (ask first), paper, a pencil, a protractor, and a compass or a round lid to trace.

  1. Choose one shelf or cupboard and classify every item into categories you decide in advance, for example: cans, boxes, bags, jars or bottles, other. Every item must fit exactly one category.
  2. Make a frequency table with relative frequencies.
  3. Draw a bar graph (frequencies, scale from 0) and a circle graph (calculate each sector angle and check that they add to 360°).
  4. Write two sentences: which graph shows the largest category most clearly, and which shows the part of the whole most clearly?

What to look for: the sector angles must add to 360° (within a degree or two if you rounded), the bars must be equal widths with gaps, and both graphs need titles and labels. A typical answer: the bar graph makes it easier to compare categories of similar size; the circle graph shows at a glance that one category is, say, about half of the shelf.

Your turn

1

For each variable, name a suitable graph: (a) favourite winter sport of 50 students, (b) reaction times of 200 drivers, (c) responses from "strongly disagree" to "strongly agree".

2

In a survey of 60 people, 21 prefer tea. What sector angle represents tea?

3

A sector in a circle graph has angle 54°. What percent of the data does it represent?

4

A circle graph of a 400-person survey has a 72° sector for "no opinion". How many people had no opinion?

5

A survey asks "Which streaming services do you use? (Choose all that apply)". Why is a circle graph a poor choice?

6

Why do bars in a bar graph have gaps, but bars in a histogram do not?

More practice: warm-up

1

Convert 0.25 of a circle into degrees.

2

Which kind of data is "province of birth"?

3

Sector angles of 150°, 90° and 60° are drawn. What angle remains for the last category?

4

Should the frequency axis of a bar graph start at 0?

5

What is a bar graph with bars sorted from tallest to shortest called?

More practice: on your own

1

A food bank sorted 500 donated items: canned goods 210, pasta and rice 130, cereal 75, baby food 35, other 50. Find each sector angle.

2

A school club has 18 Grade 9s, 12 Grade 10s, 6 Grade 11s and 4 Grade 12s. Another club has 30 Grade 9s, 30 Grade 10s, 25 Grade 11s and 15 Grade 12s. Which club has the greater proportion of Grade 12s?

3

A newspaper shows a circle graph whose sectors are labelled 45%, 30%, 20% and 15%. What is wrong?

4

Explain why sorting the bars of a satisfaction survey (very unhappy, unhappy, neutral, happy, very happy) from tallest to shortest would be a mistake.

5

A circle graph of 75 responses has a sector of 100.8°. How many responses does it represent?

Challenge

1

In a circle graph, category A's sector is twice category B's, and category C's sector is 30° more than category B's. These are the only three categories. Find all three angles.

2

A survey of 1 200 Ontario residents had 5 answer categories, and the smallest category was 1.5% of responses. A student wants a circle graph. Find the smallest sector's angle and explain whether a circle graph is a good idea.

3

Hilltop (n = 240) has 35% bus riders and Lakeview (n = 80) has 15%. A student says: "Overall, 25% of students at the two schools ride the bus, the average of 35% and 15%." Is the student right? Find the correct overall percent.

Check your understanding

Quiz

1.

Which graph is the best choice for the heights of 300 Grade 12 students?

2.

A category has 18 of 72 responses. What is its sector angle?

3.

When is a circle graph not appropriate?

4.

Two classes of different sizes answered the same survey question. Which graph compares them fairly?

5.

Which statement about bar graphs is true?

6.

A sector of a circle graph is 63°. What percent of the data is in that category?

For parents and teachers

Big idea (D1.3): the type of data decides the graph. Categorical data uses bar graphs and circle graphs; numerical data uses histograms, dot plots, stem-and-leaf plots and box plots (next lessons).

How to help: Ask your teen to find a circle graph or bar graph in the news or on a website and check it: do the parts add to 100%? Does the axis start at 0? Is it comparing counts from groups of different sizes?

Common difficulties:

  • Forgetting to multiply by 360° (writing a 25% category as 25°).
  • Comparing counts instead of percents for groups of different sizes.
  • Using a circle graph for "choose all that apply" questions.
  • Sorting ordinal categories by height.