Types of Graphs and Charts
What each common graph shows, how to pick one by purpose and how to spot a misleading chart.
The types of graphs used in classrooms, news reports and research papers each answer a different question about data. A bar graph compares amounts, a line graph follows change, a histogram shows how values are spread out and a scatter plot tests whether two measurements move together. The wrong type hides the comparison a reader needs or suggests one that is not there.
The main types of graphs at a glance
Common types of graphs and what each is for
| Graph | Data it fits | Question it answers | Common mistake |
|---|---|---|---|
| Bar graph | Counts or amounts for separate categories | Which category is largest, and by how much? | Starting the value axis above zero |
| Histogram | One numeric variable grouped into equal intervals | How are the values spread out? | Unequal bin widths, or gaps between bars |
| Line graph | Values measured in sequence, usually over time | How did this change over time? | Joining points for unrelated categories |
| Pie chart | Parts of a single whole that add to 100% | What share of the total is each part? | Too many slices, or slices of similar size |
| Scatter plot | Pairs of numeric values for the same cases | Do two measurements move together? | Reading a pattern as proof of cause |
| Box plot | One numeric variable, often split by group | Where are the median, middle half and extremes? | Hiding a tiny sample or a two-peaked shape |
| Dot plot | Small sets of numbers or categories | Where do individual values cluster? | Using it for thousands of points |
| Stem-and-leaf plot | A small set of numbers | What is the shape, with every value kept? | Unsorted leaves or uneven stems |
| Area chart | Totals over time, often stacked in layers | How do a total and its parts change? | So many layers the upper ones cannot be read |
| Stacked bar chart | Parts of a whole across several groups | How does the makeup of totals differ? | Asking readers to compare middle segments |
| Pictograph | Simple counts shown with repeated icons | Which category has more, at a glance? | Enlarging icons instead of adding more |
Choosing a graph by purpose
Start from the question, not from a software menu. Most questions about data serve one of five purposes:
- Comparison between categories: bar graph, dot plot or pictograph.
- Distribution of one variable: histogram, box plot, dot plot or stem-and-leaf plot.
- Trend over time: line graph or area chart.
- Relationship between two variables: scatter plot.
- Composition, the parts of a whole: a pie chart for one whole, a stacked bar chart for several.
When two types fit, prefer the one that puts the key comparison on a shared baseline, such as bars rising from the same zero line.
Types of charts for categories: bar, pie, stacked bar and pictograph
A bar graph draws one bar per category, its length proportional to the value. The Consumer Financial Protection Bureau's design guidelines describe bar charts as good at comparisons of discrete items or categories. Bars can stand upright, as a column chart, or lie flat, which leaves room for long labels.
A pie chart shows how one whole divides into parts, so its slices must add up to 100 percent. The UK Office for National Statistics (ONS) suggests pie charts work best with three or four categories and should not have more than six. When the slices are close in size, a bar chart is more effective.
A stacked bar chart splits each bar into segments to compare the makeup of several totals. Segments in the middle of a stack are hard to compare because they do not share a common baseline, so put the most important category at the bottom. A 100 percent stacked bar, in which every bar has the same height, usually beats a row of separate pies.
A pictograph repeats a small icon, with a key such as one icon for every 10 students. Keep every icon the same size and change only the count: doubling an icon's height also doubles its width, so it looks four times as large.
Graphs for distributions: histogram, dot plot, stem-and-leaf and box plot
A histogram summarizes the distribution of one numeric variable: where its center lies, how widely it spreads, and whether it is skewed or has more than one peak. The range is cut into equal-width intervals, called bins, and each bar's height is the count in its bin. Too few bins blur the shape; too many make it jagged.
A dot plot places one dot per value along a number line and stacks repeats. A stem-and-leaf plot does the same job with digits and keeps every original value. Example: nine quiz scores, 62, 67, 71, 74, 74, 78, 83, 85 and 91, give the plot below, and the longest row shows the 70s are the most common range.
Example stem-and-leaf plot of nine quiz scores
| Stem (tens) | Leaves (ones) |
|---|---|
| 6 | 2 7 |
| 7 | 1 4 4 8 |
| 8 | 3 5 |
| 9 | 1 |
A box plot condenses a distribution into five numbers. The box runs from the lower quartile, the 25th percentile, to the upper quartile, the 75th percentile, so it holds the middle half of the data; a line marks the median, and whiskers reach toward the extremes. In the quiz example the median is 74, the fifth of the nine sorted scores. Box plots shine when several groups sit side by side, but they hide the shape inside the box, so a two-peaked distribution can look ordinary.
Bar graph versus histogram
The two look alike but answer different questions. A bar graph compares separate categories, such as favorite sports, so its bars are drawn with gaps and can be put in any useful order. A histogram shows one continuous measurement, such as height or test score, cut into intervals. Its bars touch because the scale underneath is unbroken, and their order is fixed by the number line. Rearranging a histogram's bars, or leaving gaps between them, misrepresents the data.
Graphs for change and relationships: line, area and scatter
A line graph joins values measured in sequence, so the slope between points shows the rate of change; CFPB's guidelines describe line charts as good at showing change over time. An area chart is a line graph with the space beneath it filled in. Stacked area charts share the stacked-bar weakness: only the bottom layer has a flat baseline.
A scatter plot gives each case one dot, placed by two measurements, such as hours studied and test score. It reveals relationships or association between two variables. An upward drift suggests a positive relationship, a downward drift a negative one, and a shapeless cloud little or none. A strong pattern shows association, not cause; a third factor may drive both.
Several of these forms are younger than they look: historians of graphics credit the Scot William Playfair with inventing the time-series line graph, the bar chart and the pie chart. His trade line graphs appeared in The Commercial and Political Atlas, published in London in 1786, and his pie charts in The Statistical Breviary of 1801.
Reading graphs critically
- Check where the axis starts. A bar's length is the comparison, so a value axis that starts above zero exaggerates small differences. ONS guidance says bar and area charts should always start at zero. Line graphs and scatter plots differ, because their points are not tied to the axis: a cropped axis is acceptable, for example starting at 90 when the values run from 92 to 100, as long as it is clearly marked.
- Be wary of two vertical axes. Separate left and right scales let a maker slide either line up or down, so an apparent crossing may mean nothing. ONS advises against dual-axis charts because they are often misleading and difficult to interpret.
- Distrust 3D effects. Tilting a pie or bar into perspective draws nearer pieces larger than equal pieces farther back, and the false depth carries no data.
- Look at the time window. Choosing where the dates start and stop can manufacture a trend.
- Read the units and the source. Percent or count? Per person or total? A graph with no units and no source cannot be checked.
A checklist for making a clear graph
- Write down the one question the graph should answer, then choose the type by purpose.
- Start bar and area charts at zero; mark any cropped axis on a line graph.
- Label both axes with names and units, and use a title that states the finding.
- Order categories meaningfully: largest to smallest, or in their natural order.
- Use equal intervals for histogram bins and for time axes.
- Keep colors few and consistent, and check that the graph still reads in grayscale.
- Remove 3D effects, heavy gridlines and decoration that carries no data.
- Name the data source and the date of the data.
The numbers that summarize data, such as the mean and standard deviation, are covered on the statistics page and worked out by the statistics calculators. To turn counts into pie-chart percentages, use the percentage tools.
Sources
- Consumer Financial Protection Bureau, Design System: cfpb.github.io/design-system/guidelines/data-visualization-guidelines
- Office for National Statistics (UK), Service Manual: service-manual.ons.gov.uk/data-visualisation/chart-types/pie-and-doughnut-charts
- Office for National Statistics (UK), Service Manual: service-manual.ons.gov.uk/data-visualisation/chart-types/stacked-bar-charts
- NIST/SEMATECH e-Handbook of Statistical Methods: itl.nist.gov/div898/handbook/eda/section3/histogra.htm
- NIST/SEMATECH e-Handbook of Statistical Methods: itl.nist.gov/div898/handbook/eda/section3/boxplot.htm
- NIST/SEMATECH e-Handbook of Statistical Methods: itl.nist.gov/div898/handbook/eda/section3/scatterp.htm
- Michael Friendly and Howard Wainer, A History of Data Visualization and Graphic Communication (companion site): friendly.github.io/HistDataVis/ch05-playfair.html
- Office for National Statistics (UK), Service Manual: service-manual.ons.gov.uk/data-visualisation/guidance/axes-and-gridlines