Graphical Representations for One Categorical Variable
Turn category counts into graphs you can read and trust. Learn to build bar charts and pie charts, support a claim with evidence, and compare groups fairly when their sample sizes differ.
By the end of this lesson, you should be able to:
- Construct a bar chart using counts or relative frequencies.
- Construct a pie chart whose slices represent parts of one whole.
- Justify a claim using category counts or percentages from a graph.
- Compare categorical distributions using a common percentage scale.
Before you start: Know how to calculate a category’s relative frequency. Review Topic 1.3 if you need a reminder.
First time learning this? Follow the travel-method example and the graph-building steps, then try Worked Example 1.
Here to revise? Read the quick revision notes, then try the practice questions without opening the answers.
The concept in 60 seconds
A categorical graph shows how observations are distributed across category labels. In a bar chart, a bar’s height or length represents a category’s count or share. In a pie chart, a slice represents that category’s share of the whole.
Read the scale before the shape. A bar labeled might mean students, of students, or a proportion of . The axis label tells you which.
For example, out of sampled students travelled by car. A count bar chart shows students. A percentage bar chart shows . A pie chart gives Car of the circle. These displays tell the same story about the same sample.
When comparing groups of different sizes, compare their relative frequencies if your question is about shares. More observations in a category do not automatically mean a larger proportion.
One travel-method table, three ways to display it
Continue the fictional Cedar High example. The school has enrolled students. For the Tuesday being studied, a sample of students records each student’s main home-to-school travel method. Each student has one recorded method.

| Travel method | Frequency: students | Relative frequency | Percentage |
|---|---|---|---|
| Bus | |||
| Car | |||
| Walk | |||
| Bike | |||
| Total |
Frequency bar chart · sampled students
The bar lengths show the counts directly. Car is most common; Bike is least common. The gaps separate category labels. Bus, Car, Walk and Bike are not intervals on a numerical scale.
Relative frequency bar chart · the same students
Changing from counts to percentages changes the numbers on the scale, but not the ranking of categories within this sample. Divide every count by the same total, , and multiply by .
Pie chart · all sampled students form one whole
- Bus: ( students)
- Car: ( students)
- Walk: ( students)
- Bike: ( students)
Predict before reading on: Car has the longest bar and the largest slice. Does that mean a majority of these students travelled by car?
Check your prediction
No. Car accounts for , which is less than half. A majority requires more than . “Largest category” and “majority” are different claims.
Bar chart or pie chart: what does each show?
Frequency bar chart
Each bar represents a category. Its height or length shows the number of observations in that category.
Useful for: “How many sampled students travelled by car?” Answer: .
Relative frequency bar chart
Each bar shows a category’s proportion or percentage of the stated group.
Useful for: “What share of the sample travelled by car?” Answer: , or .
Pie chart
The whole circle represents of the group. Each slice’s area is proportional to its category’s relative frequency.
Useful for seeing how a small number of categories divide one whole.
Categorical distribution
The category labels and their counts or relative frequencies describe how the observations are distributed.
Useful descriptions name common categories, uncommon categories and differences in shares.
Which display should you choose?
A table makes exact values easy to look up. A bar chart makes categories easy to compare because the bars start from a common baseline. A pie chart emphasizes parts of a whole, but close-sized slices can be harder to compare accurately.
Bar charts work vertically or horizontally. Horizontal bars are helpful when category names are long. For several groups, bar charts on a common percentage scale usually make small differences easier to judge than separate pie charts.
Pie-chart check: The categories must form nonoverlapping parts of the whole being displayed. A “select all that apply” survey can put one student in several categories, so its percentages of students may exceed . Use a suitably labeled bar chart rather than forcing those overlapping responses into a pie.
Category order has meaning only when the categories do
You can arrange unordered categories alphabetically, in a practical order, or by frequency. Reordering Bus and Car does not change the data. For ordered categories such as Low, Medium and High, keep the meaningful order. When comparing groups, use the same category order in each display.
Do not describe unordered travel-method categories as “left-skewed” or “right-skewed.” Moving the labels would change the apparent pattern. Means, medians and numerical spread are not appropriate summaries of these category labels.
How to construct a categorical graph
Build a bar chart in six steps
For Cedar High, a count scale from to students accommodates the largest count, . The percentage chart uses to ; the largest category is . A percentage bar chart’s axis does not have to end at , as long as it starts at zero, is clearly labeled and includes all the bars.
Build a pie chart from proportions
First identify the whole and calculate each category’s share. Then give each category the same fraction of the circle. If drawing slices with a protractor, use:
For Car: . Use the unrounded proportion to calculate the angle.
| Category | Calculation | Slice angle |
|---|---|---|
| Bus | ||
| Car | ||
| Walk | ||
| Bike | ||
| Total |
Label the slices directly or provide a clear legend and percentages. State the sample size. A slice represents students when , but students when . The percentage alone does not tell you the count.
Final checks: Each count bar matches its count; each percentage bar matches its share; and the pie contains one complete circle. Exact proportions total and exact percentages total . Rounded labels can differ slightly from .
Compare groups using the right denominator
Suppose a separate fictional sample of Riverside High students records the same main travel method for the Tuesday being studied. Its counts are Bus , Car , Walk and Bike . We now have two distributions of the same categorical variable, one for each sample.
| Method | Cedar High: | Riverside High: |
|---|---|---|
| Bus | students; | students; |
| Car | students; | students; |
| Walk | students; | students; |
| Bike | students; | students; |
Cedar High: · Riverside High: · same percentage scale
Percentage within each school’s sample · category axis: Main travel method
Counts answer one question; percentages answer another. Riverside has more sampled car travellers: versus . However, Car represents the same share of each sample: . Both statements are true.
In both samples, Car is the most common method and Walk accounts for . Cedar’s sample has a higher Bus percentage, approximately versus . Riverside’s sample has a higher Bike percentage, versus approximately .
Comparison checklist: Same variable and category definitions; each group’s own denominator; same category order; same numerical scale; and a sentence that names both groups.
Percentage points: describe the difference clearly
The Bike shares differ by approximately . A percentage-point difference subtracts two percentages. Saying “ higher” can be ambiguous because a relative percentage increase uses a different calculation.
These comparisons describe the recorded samples. A difference in sample bars alone does not establish a difference between all students at the two schools, and it does not explain why the samples differ. Sampling and inference determine what broader claims are justified.
Worked examples
Example 1: Construct two bar charts from one table
Question: Construct a count bar chart and a percentage bar chart for the Cedar High sample. Explain what changes and what stays the same.
- Identify the data. The variable is main travel method for sampled students. The counts are Bus , Car , Walk and Bike .
- Draw the count chart. Label the category axis “Main travel method” and the numerical axis “Number of sampled students.” Start at zero; draw separate equal-width bars ending at , , and .
- Convert to percentages. Divide by , then multiply by . The values are approximately , , and .
- Draw the percentage chart. Keep the categories; label the numerical axis “Percentage of sampled students.” Use a zero baseline and consistent intervals.
- Explain the connection. The axis values change, but Car remains largest and Bike smallest. Each count has been multiplied by the same factor, .
Check your work: Compare your drawings with the two bar charts above. A -student Car bar and a Car bar represent the same observations.
Example 2: Use a pie chart to evaluate a claim
Question: A student says, “Car is a majority because its slice is largest.” Evaluate the claim, then find the Walk slice angle.
- Read the share. Car is of the sample.
- Apply the meaning of majority. A majority is more than half. Since , the claim is not supported.
- Write a correction. “Car was the most common method among the sampled Cedar High students, but it was not used by a majority.”
- Find the Walk angle. Walk’s proportion is . Its angle is .
Reflect: of the observations corresponds to of the circle. The largest slice can still be smaller than half a circle.
Example 3: Compare samples of different sizes
Question: Riverside has sampled bus travellers and Cedar has . Does Bus represent a higher proportion at Riverside? Justify your answer.
- Identify the totals. Riverside’s sample has students; Cedar’s has .
- Calculate each sample share. Riverside: . Cedar: .
- Compare percentages. is greater than , so Cedar has the higher Bus proportion in these samples.
- Support the conclusion. “Although Riverside’s sample includes more bus travellers, Bus makes up a higher share of Cedar’s sample: approximately versus , a difference of about percentage points.”
Reflect: A count comparison alone answers “how many,” not “what proportion.”
How to justify a claim in context
A strong answer includes a claim, numerical evidence and the group being described. If comparing samples, name both groups and compare the same category using the same type of value.
| Weak answer | Improved answer |
|---|---|
| “Car is biggest.” | “Car was the most common main travel method among the sampled Cedar High students, with students, or .” |
| “Riverside uses cars more.” | “Riverside’s sample included more car travellers, versus , but Car represented of each sample.” |
| “Cedar is higher.” | “The Bus percentage was about percentage points higher in Cedar’s sample: approximately versus .” |
| “Most Cedar students drive.” | “Car was the largest category in Cedar’s sample, at . The graph records travel by car, not whether the student was driving, and does not by itself establish a claim about all enrolled students.” |
Writing frame: “Among [recorded group], [category] accounted for [count or percentage], so [supported claim].”
Comparison frame: “For [same category], [group A] had [percentage] and [group B] had [percentage]. Therefore, [specific comparison], by [difference] percentage points.”
Common graph mistakes and how to correct them
Ignoring the axis label
Mistake: Reading a bar as students.
Fix: Check whether the graph shows counts, proportions or percentages. Use the sample size if converting between them.
Cutting off the zero baseline
Mistake: Bars for counts and begin at , making one bar appear times as long.
Fix: Start the bar scale at zero. The actual count ratio is , not .
Comparing counts as if they were shares
Mistake: Saying is greater than because .
Fix: Compare with approximately . Each denominator matters.
Forcing overlapping responses into a pie
Mistake: Making pie slices from a multiple-choice survey whose percentages of students total .
Fix: A pie must partition one whole. Use a bar chart with clearly stated counting rules for overlapping categories.
Making pictures distort the values
Mistake: Enlarging a bus icon in both height and width to represent twice the count, or using a tilted 3D pie.
Fix: Use a flat, labeled graph. Doubling both dimensions quadruples an icon’s area; perspective can also make slices appear unequal.
Confusing bar charts with histograms
Mistake: Treating Bus, Car, Walk and Bike as numerical intervals.
Fix: Categorical bars represent separate labels. Histograms represent quantitative values grouped into intervals; you will study them in Topic 1.5.
Try a correction: “Riverside’s car travellers prove cars are more popular there than at Cedar, where only students travelled by car.”
Show the corrected reasoning
The car counts differ, but the percentages are equal: . The data show equal Car shares in the two samples. The counts alone do not establish that Car has a higher population proportion at Riverside.
Check your understanding: practice with solutions
These are original AP-style practice questions. Sketch graphs on paper where requested, including a title, category labels and a numerical scale. Try each question before opening its answer.
1. Construct a bar chart
students each select one after-school activity: Art , Sport or Music . Construct a frequency bar chart. Then give Art’s percentage and explain whether it is a majority.
Hint
The numerical axis should show students and start at zero. For Art’s percentage, divide by and multiply by .
Solution and reasoning
A correct chart has separate, equal-width bars ending at Art , Sport and Music , with a consistent zero-based count scale.
Frequency bar chart · one activity per student
Art’s percentage is . Art is the largest category, but it is not a majority because is below .
2. Build pie-chart slices
Using the activity counts from Question 1, calculate the percentage and slice angle for Art, Sport and Music. Check that the angles make a whole circle.
Hint
For each category, calculate . Multiply by for its percentage or by for its slice angle.
Solution and reasoning
Art: , angle . Sport: , angle . Music: , angle . Check: , and .
3. Read a relative frequency scale
A relative frequency bar chart shows Tea at , Coffee at and Water at for recorded customers. How many selected Tea? Explain what the Tea bar represents.
Hint
A proportion of is , not people. Multiply the share by the total to find the count.
Solution and reasoning
customers. The Tea bar means that of these customers selected Tea. Its height represents a relative frequency, not a count of customers.
4. Spot a misleading baseline
A graph compares category counts and , but its bar-length axis starts at . One visible bar is units long and the other is units long. A reader concludes that the first count is times the second. Explain the problem and give the correct count ratio.
Hint
The visible lengths show each value minus , not the original values. Compare the counts themselves.
Solution and reasoning
The truncated baseline exaggerates the difference: compares distances above . The actual count ratio is . The first count is times the second. Redraw the bars from zero to represent the counts honestly.
5. Compare two samples fairly
In sample A, of students select Art. In sample B, of select Art. Which sample has more Art selections? Which has the higher Art proportion? Suggest a useful graph for comparing the shares.
Hint
Answer “how many” with counts and “what share” with proportions. Use each sample’s own total.
Solution and reasoning
Sample B has more Art selections: versus . Sample A has the higher Art share: , compared with in B, a difference of percentage points. A percentage bar chart with both samples on the same zero-based scale makes that comparison clear.
6. Choose a graph for overlapping categories
students select every club they attend. select Sport, Music and Art, with some students selecting several clubs. A student proposes pie slices of , and . Is that a valid pie chart of the students? What should be used instead?
Hint
The same student can contribute to more than one category. Check whether the proposed slices partition of the students.
Solution and reasoning
No. The percentages total because the student groups overlap, so they do not form disjoint parts of one circle representing the students. Use a bar chart of counts or percentages, clearly labeled as club attendance with multiple selections allowed. A different chart of the total selections would have a different denominator and answer a different question.
Quick revision notes
- Count bar chart: .
- Relative frequency bar chart: .
- Read first: title, recorded group, sample size, categories and axis units.
- Construct carefully: a zero baseline, equal numerical intervals, equal-width separate bars and clear labels.
- Pie chart: each slice is a share of one whole; exact percentages total .
- Pie angle: ; exact angles total .
- Compare shares: divide by each group’s own total and use a common scale.
- Difference in percentages: report percentage points when subtracting percentages.
- Largest category: not necessarily a majority; majority means more than .
- Justify a claim: name the category and group, give numerical evidence, and stay within what the data support.
Three questions to remember: What does the scale measure? What is the whole? Do my numbers support my claim?
Final understanding check
A school surveys students about their preferred class format. The single-choice responses are In-person , Online and Hybrid . Another school surveys students, with In-person , Online and Hybrid . All data are invented for practice.
- Describe how to construct a percentage bar chart for the first sample, giving the three bar values.
- Calculate the Hybrid slice angle for a pie chart of the first sample.
- Is In-person a majority in the first sample? Justify with numerical evidence.
- Compare the In-person shares in the two samples. Explain why comparing with alone would not answer this question.
Show a complete answer
1. Title the chart “Preferred class format among sampled students.” Label the categories In-person, Online and Hybrid and the numerical axis “Percentage of sampled students.” Use separate equal-width bars from zero ending at , and , with equal numerical intervals.
2. .
3. Yes. In-person is , which is more than , so it has a majority in the first sample.
4. The In-person shares are in the first sample and in the second. The first sample’s share is percentage points higher. The second sample has more In-person responses, versus , but also twice as many students. Counts alone do not compare shares.
Self-check: Did you label percentages, use each sample’s own denominator, and support every claim with a number? If yes, you have the main reasoning skills for this topic.
Continue learning
Previous lesson: Topic 1.3: Tabular Representation and Summary Statistics for One Categorical Variable. Review counts and proportions when a graph’s scale is unclear.
Topic 1.5: Graphical Representations for One Quantitative Variable →
Next, move from category labels to numerical values and learn how quantitative graphs display their distributions.
Review graph construction · Review sample comparisons · Back to the lesson overview