Skip to content

Guide

Types of Graphs: 13 Charts and When to Use Each

The 13 main types of graphs and charts, what each one shows and when to use it. Every type comes with a live example you can open and edit.

Published September 29, 2026

In this guide
  1. How to Choose a Graph: Start With the Question
  2. Graphs That Compare Categories
  3. Graphs That Show Parts of a Whole
  4. Graphs That Show Change Over Time
  5. Graphs That Show How Values Are Spread Out
  6. Graphs That Show a Relationship
  7. Graphs for Sets, Sequences and Words
  8. A Quick Chooser
  9. Types of Graphs in Statistics
  10. Common Mistakes
  11. Other Types You Will Meet
  12. Try It With Your Own Data

There are many types of graphs, and each one is built to answer a different kind of question. A bar chart compares amounts. A line chart follows change over time. A histogram shows how values are spread out. Pick the wrong type and the same numbers can look confusing or even misleading. Pick the right one and the answer is obvious at a glance.

In everyday speech, people use “graph” and “chart” for the same thing, and this guide does too. It covers thirteen types: bar, grouped bar, stacked bar, pie, donut, line, histogram, box plot, dot plot, scatter plot, Venn diagram, timeline and word cloud. For each one you will see what it shows, one rule for using it well, and one case where you should choose something else.

Every example below is drawn live in your browser. Each has an Open in button. Click it and the chart opens in the matching free tool with the data already filled in, so you can change the numbers and download your own version. All numbers in the examples are sample data.

How to Choose a Graph: Start With the Question

Do not start with the chart. Start with the question you want the reader to answer. Then match it to a type.

Keep that list open while you read. The rest of the guide goes through the types in the same order.

Graphs That Compare Categories

Bar Chart

A bar chart shows categorical data as rectangular bars. The length of each bar is proportional to the value it stands for, and the bars can run vertically or horizontally. A vertical bar chart is sometimes called a column chart, according to Wikipedia’s entry on the bar chart.

Each bar is a different category, so the chart is about comparison. One axis lists the categories and the other axis shows the measured value. When the categories have no natural order, you can arrange the bars any way you like. Sorting them from highest to lowest makes the ranking easy to read, and Wikipedia calls a bar chart sorted that way a Pareto chart.

Library books borrowed, by gradebar graph. Books: Grade 3 120, Grade 4 95, Grade 5 140, Grade 6 110.Library books borrowed, by gradeOne week050100150Grade 3Grade 4Grade 5Grade 6Grade 3, Books: 120Grade 4, Books: 95Grade 5, Books: 140Grade 6, Books: 11012095140110Books

A bar chart with one series. Each bar is one grade, and its length is the number of books. Sample data.

Show the data
CategoryBooks
Grade 3120
Grade 495
Grade 5140
Grade 6110

One rule: start the bars at zero. Wikipedia notes that a non-zero baseline can make similar values look deceptively different. The exceptions are measures such as temperature in Celsius or Fahrenheit, where zero is somewhat arbitrary.

Choose something else when you want to show how values spread out inside one group. That is a job for a histogram, which comes later in this guide.

William Playfair is widely credited with inventing the bar chart. His Commercial and Political Atlas used one to show the exports and imports of Scotland for a year around 1780 to 1781. Many sources credit him, which is why you will often see him named.

Open this bar chart in the bar graph maker

Grouped Bar Chart

A grouped bar chart, also called a clustered bar chart, puts two or more bars next to each other inside each category. Each color stands for one series, such as one term or one year. Use it when you want to compare the series with each other inside every category.

Quiz average by class and termGrouped bar graph. Term 1: Class A 72, Class B 68, Class C 81, Class D 75. Term 2: Class A 78, Class B 74, Class C 79, Class D 83.Quiz average by class and termPoints out of 100Term 1Term 2020406080100Class AClass BClass CClass DClass A, Term 1: 72Class A, Term 2: 78Class B, Term 1: 68Class B, Term 2: 74Class C, Term 1: 81Class C, Term 2: 79Class D, Term 1: 75Class D, Term 2: 837278687481797583Average score

A grouped bar chart. Inside each class, the two bars are the two terms, so you can see who improved. Sample data.

Show the data
CategoryTerm 1Term 2
Class A7278
Class B6874
Class C8179
Class D7583

One rule: keep the number of series small. Claus Wilke, in his open textbook Fundamentals of Data Visualization, points out that reading a color takes more effort than reading a position, because you have to match each bar to the legend. With two or three series that effort is small. With seven it is not.

Choose something else when the total matters more than the parts. That is where the stacked bar comes in.

Stacked Bar Chart

A stacked bar chart piles the series on top of each other in one bar, so the height of the whole stack shows the combined total. Wilke says stacking is useful when the sum of the individual amounts is itself a meaningful amount. Counts of paperbacks, hardcovers and e-books add up to the total number of books, so stacking them makes sense.

Library books borrowed, by formatStacked bar graph. Paperback: Grade 3 70, Grade 4 50, Grade 5 60, Grade 6 40. Hardcover: Grade 3 35, Grade 4 25, Grade 5 30, Grade 6 20. E-book: Grade 3 15, Grade 4 20, Grade 5 50, Grade 6 50.Library books borrowed, by formatOne week, each bar is the grade totalPaperbackHardcoverE-book050100150Grade 3Grade 4Grade 5Grade 6Grade 3, Paperback: 70Grade 3, Hardcover: 35Grade 3, E-book: 15Grade 4, Paperback: 50Grade 4, Hardcover: 25Grade 4, E-book: 20Grade 5, Paperback: 60Grade 5, Hardcover: 30Grade 5, E-book: 50Grade 6, Paperback: 40Grade 6, Hardcover: 20Grade 6, E-book: 5070351512050252095603050140402050110Books

A stacked bar chart. The height of each bar is the grade total, and the colors show the formats inside it. Sample data.

Show the data
CategoryPaperbackHardcoverE-book
Grade 3703515
Grade 4502520
Grade 5603050
Grade 6402050

One rule: put the series you care about most at the bottom. Only the bottom segment sits on the axis. Wilke notes that stacked bars have the problem that the bars are hard to compare because they have different baselines. Our full guide to the stacked bar chart explains when it works and when it misleads.

Choose something else when you need to compare the middle or top parts across categories. Use grouped bars instead.

Graphs That Show Parts of a Whole

Pie Chart

A pie chart divides a circle into slices, and each slice is one share of the whole. Its history goes back to William Playfair’s Statistical Breviary of 1801, which is the earliest known example. Both Wikipedia and Stephen Few (2007) give that date.

How a school day of 24 hours is spentPie chart. Sleep 8 (33%), School 7 (29%), Homework 2 (8%), Screens 2 (8%), Everything else 5 (21%).How a school day of 24 hours is spentOne student, hoursSleep: 8 (33%)School: 7 (29%)Homework: 2 (8%)Screens: 2 (8%)Everything else: 5 (21%)33%29%8%8%21%Sleep33%School29%Homework8%Screens8%Everything else21%

A pie chart with five slices. Each label is the share of the 24 hours. Sample data.

Show the data
SliceValue
Sleep8
School7
Homework2
Screens2
Everything else5

Pie charts have a well-known weakness. Stephen Few argued in 2007 that a pie encodes values by the area and the angle of its slices, and that people compare areas and angles less accurately than positions and lengths. That is why a bar chart usually reads better when you want to compare categories with each other.

They do have a strength. Wikipedia reports that if the goal is to compare one slice with the total, and the share is close to 25 or 50 percent, a pie can beat a bar chart. Wilke agrees that pies work well for simple fractions such as one half, one third or one quarter.

One rule: keep the slices few. With many sections, colors repeat or look alike and the chart becomes hard to read. As a rule of thumb of our own, not a rule from a study, we suggest five or six slices at most. Group the small ones into “Other”.

Choose something else when the reader needs to rank the parts. Bars line up on a common baseline, so the ranking is easy to see. If a pie is still the right call, build one in the pie chart maker.

Donut Chart

A donut chart is a pie chart with a blank center. The center can hold information about the whole, such as a total. Its purpose is the same as a pie chart: to show proportions.

Attendance this termDonut chart. Present 88 (88%), Late 7 (7%), Absent 5 (5%).Attendance this termShare of school daysPresent: 88 (88%)Late: 7 (7%)Absent: 5 (5%)88%7%5%88%presentPresent88%Late7%Absent5%

A donut chart. The hole holds the headline number. Sample data.

Show the data
SliceValue
Present88
Late7
Absent5

One rule: use the hole for one short number or label, and nothing else.

Choose something else when you have more than a handful of parts. The donut inherits every weakness of the pie.

Graphs That Show Change Over Time

Line Graph

A line graph shows data points ordered by their x value, usually time, joined by straight segments. It looks like a scatter plot, except that the points are ordered and connected. That is why it is the usual choice for a trend over time.

Wilke describes the idea well. In a time series the dots are spaced evenly along the x axis and have a defined order. Connecting neighboring points with lines makes that order easy to follow, and the result is called a line graph.

Library visits per weekLine graph. Visits: Week 1 40, Week 2 44, Week 3 43, Week 4 52, Week 5 58, Week 6 55, Week 7 63, Week 8 67.Library visits per weekEight weeks of the fall term40455055606570Week 1Week 2Week 3Week 4Week 5Week 6Week 7Week 8Week 1, Visits: 40Week 2, Visits: 44Week 3, Visits: 43Week 4, Visits: 52Week 5, Visits: 58Week 6, Visits: 55Week 7, Visits: 63Week 8, Visits: 67Visits

A line graph of one series over eight weeks. The slope between two points is the change. Sample data.

Show the data
CategoryVisits
Week 140
Week 244
Week 343
Week 452
Week 558
Week 655
Week 763
Week 867

Playfair did not invent the line graph, but Stephen Few writes that his work popularized it as a way to show values across time.

One rule: put time on the horizontal axis, from oldest to newest, with equal steps between the points.

Choose something else when the x axis is not ordered. If the categories are just names, connecting them with a line suggests a trend that does not exist. Use bars.

Open this line graph in the line graph maker

Graphs That Show How Values Are Spread Out

Some questions are not about one number per category. They are about a whole set of numbers: how they cluster, how far they range, and whether any of them stand out. Three graphs answer that.

Histogram

The NIST/SEMATECH Handbook says a histogram summarizes the distribution of one numeric variable. It shows the center of the data, its spread, its skewness, the presence of outliers and the presence of more than one mode. The most common form splits the range into equal-sized bins, called classes, and counts the points in each bin.

Quiz scoresHistogram of 30 values in 5 bins. 50 to under 60: 2, 60 to under 70: 7, 70 to under 80: 11, 80 to under 90: 7, 90 to 100: 3.Quiz scores30 students, points out of 100024681012506070809010050 to under 60: 260 to under 70: 770 to under 80: 1180 to under 90: 790 to 100: 3271173StudentsScore

A histogram of 30 quiz scores in bins ten points wide. The tallest bin, scores in the 70s, shows where most students landed. Sample data.

Show the data

55, 58, 61, 62, 64, 65, 67, 68, 68, 70, 71, 72, 72, 74, 75, 75, 76, 77, 78, 79, 80, 81, 82, 84, 85, 86, 88, 90, 93, 97

In a histogram the boxes touch each other, and the vertical axis shows frequency or relative frequency. OpenStax, in Introductory Statistics 2e, gives a rule of thumb: use a histogram when the data set has 100 values or more. That is a practical guide, not a law, and the example above uses 30 values so the chart is easy to follow.

One rule: try more than one bin size. There is no single best number of bins, and different bin sizes reveal different features of the data.

Choose something else when each bar is a separate category. In a histogram each bin is a range of one numeric variable, while in a bar chart each bar is a different category. Some authors suggest gaps between the bars of a bar chart to keep the two apart. The histogram maker can build bins for you with a rule such as Sturges or Freedman-Diaconis.

Box Plot

A box plot summarizes a data set with five numbers. NIST describes the box as running from the lower quartile, the 25th percentile, to the upper quartile, the 75th percentile. A line marks the median, and the box holds the middle 50 percent of the data.

A box plot of 14 valuesBox plot, 1 group. Example data: minimum 1, first quartile 2, median 7, third quartile 9, maximum 11.5.A box plot of 14 valuesThe example data set from OpenStax Introductory Statistics 2e02468101214Example dataValueExample data: min 1, Q1 2, median 7, Q3 9, max 11.5127911.5

A box plot of the 14 example values from OpenStax Introductory Statistics 2e. The box runs from 2 to 9 and the median is 7.

Show the data
GroupValues
Example data1, 1, 2, 2, 4, 6, 6.8, 7.2, 8, 8.3, 9, 10, 10, 11.5

OpenStax builds a box plot from five values: the minimum, the first quartile, the median, the third quartile and the maximum. In the example above the first quartile is 2, the median is 7 and the third quartile is 9, with a minimum of 1 and a maximum of 11.5. When a chart marks outliers with dots, the whiskers no longer reach the minimum and maximum. In the common version described by NIST, a point beyond 1.5 times the interquartile range from the box is treated as a mild outlier and drawn separately.

One rule: use box plots to compare several groups side by side. One box is fine, but the real value shows up when you line up three or four.

Choose something else when you want to see the shape of the data. A box hides whether the values cluster in two peaks. A histogram shows it.

Dot Plot

Wikipedia describes a dot plot as a chart of data points on a simple scale, typically drawn as filled circles. It suits small to moderate data sets and highlights clusters, gaps and outliers while keeping the actual numbers. Unlike a histogram, which only shows how many values fall in each bin, a dot plot keeps every value: one dot is one observation.

Books read over the summerDot plot of 20 observations. 0: 1, 1: 3, 2: 4, 3: 5, 4: 3, 5: 2, 6: 1, 8: 1.Books read over the summer20 students, one dot per student0123456780: 11: 32: 43: 54: 35: 26: 18: 1Number of books

A dot plot of 20 students. Each dot is one student, stacked at the number of books they read. Sample data.

Show the data

0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 8, 1, 2, 3, 4

One rule: keep it small. Wikipedia says that with roughly 20 to 30 points or more, a stemplot, box plot or histogram may be more efficient, because dots get cluttered.

Choose something else when you have a large data set. A stemplot is another option worth knowing about. OpenStax calls it a quick way to graph data that gives an exact picture of the data. Our dot plot maker is built for the small-set case.

Graphs That Show a Relationship

Scatter Plot

A scatter plot reveals a relationship, or association, between two variables. NIST puts the variable you suspect is related on the horizontal axis and the response on the vertical axis. It helps you ask whether the two are related, whether the relationship is linear, whether the spread of Y changes with X, and whether there are outliers.

Hours studied and test scoreScatter plot with 12 points. (1, 58), (2, 62), (2.5, 66), (3, 61), (4, 72), (4.5, 70), (5, 78), (6, 75), (6.5, 84), (7, 81), (8, 90), (9, 88). Line of best fit y = 4.137x + 53.58, R squared 0.924.Hours studied and test score12 students in one classy = 4.137x + 53.58R² = 0.9245060708090100012345678910Line of best fit: y = 4.137x + 53.58Ava: (1, 58)Ben: (2, 62)Cam: (2.5, 66)Dee: (3, 61)Eli: (4, 72)Fay: (4.5, 70)Gus: (5, 78)Hal: (6, 75)Ivy: (6.5, 84)Jon: (7, 81)Kim: (8, 90)Lou: (9, 88)Test scoreHours studied

A scatter plot with a line of best fit. Each dot is one student: hours studied on the horizontal axis, score on the vertical axis. Sample data.

Show the data
Hours studiedTest scoreLabel
158Ava
262Ben
2.566Cam
361Dee
472Eli
4.570Fay
578Gus
675Hal
6.584Ivy
781Jon
890Kim
988Lou

When the dots follow a roughly straight path, NIST notes that a linear regression model might be appropriate. The line drawn through the dots is the best-fit line. OpenStax explains that r squared, the square of the correlation coefficient, tells you the share of the variation in y that is explained by x through that line.

One rule: a pattern in a scatter plot shows that two things move together. It does not show that one causes the other.

Choose something else when your x values are categories. That is a bar chart.

Graphs for Sets, Sequences and Words

Venn Diagram

A Venn diagram uses overlapping closed curves, usually circles, to show all possible logical relations between a finite collection of sets. Points inside a curve are elements of that set, and the overlap of two curves is their intersection. In a Venn diagram the curves overlap in every possible way. A diagram that leaves some relations out is an Euler diagram, so a Venn diagram is a special case of one.

Which students read for fun and which play a sportVenn diagram with 2 sets. Reads for fun only: Ava, Eli, Gus. Plays a sport only: Ben, Fay, Hal. Reads for fun and Plays a sport: Cam, Dee.Which students read for fun and which play a sportReads for fun: 5 itemsPlays a sport: 5 itemsReads for funPlays a sportAvaEliGusBenFayHalCamDee

A two-circle Venn diagram. Cam and Dee do both, so they sit in the overlap. Sample data.

Show the data
Reads for funPlays a sport
AvaBen
CamCam
DeeDee
EliFay
GusHal

One rule: each item goes in exactly one region. If you cannot decide where something belongs, the sets need clearer definitions.

Choose something else when you have numbers, not groups. Our Venn diagram maker draws two or three circles.

Timeline

A timeline is a list of events in chronological order, usually drawn as a bar labeled with dates. Our timeline tool spaces the events evenly in the order you enter them rather than to scale, and the dates are free text such as “Week 3” or “Spring 2025”. So it is best for a story or a plan, not for measuring gaps.

Science fair planTimeline. Week 1: Pick a question: Choose something you can test in a week.. Week 2: Run the tests: Write down every result.. Week 4: Build the display: One chart, one photo, one conclusion.. Week 5: Present: Three minutes, then questions.Science fair planWeek 1Pick a questionChoose something you can test in a week.Week 2Run the testsWrite down every result.Week 4Build the displayOne chart, one photo, one conclusion.Week 5PresentThree minutes, then questions.

A vertical timeline for a class project. Each entry has a date, a title and a short note. Sample data.

Show the data
DateEventNote
Week 1Pick a questionChoose something you can test in a week.
Week 2Run the testsWrite down every result.
Week 4Build the displayOne chart, one photo, one conclusion.
Week 5PresentThree minutes, then questions.

One rule: lead each entry with the event and keep the note to one sentence.

Choose something else when the exact size of the gaps is the point. Plot the values on a line graph. If you want ready-made layouts, see our timeline templates.

Word Cloud

A word cloud, also called a tag cloud, is a visual representation of text data. It shows the importance of each word with font size or color, and it is often used to summarize free-form text or keywords.

Words from a chart lessonWord cloud of 12 words. Most frequent: chart (10), data (9), bars (7), lines (6), slices (5), scale (5), labels (4), trend (4), axis (3), color (3).Words from a chart lessonchartdatabarslinesslicesscalelabelstrendaxiscolorcomparetitle

A word cloud built from a short word list. Bigger words have bigger weights. Sample data.

Show the data
WordWeight
chart10
data9
bars7
lines6
slices5
scale5
labels4
trend4
axis3
color3
compare3
title2

One rule: use it for a quick first look at a text, such as survey answers.

Choose something else when the reader needs the numbers. A word cloud shows that a word is big, not by how much. A bar chart of the top ten words gives exact counts.

A Quick Chooser

Your question Best type Avoid when
Which category is biggest? Bar chart The categories are really ranges of one number
How do two or three groups compare in each category? Grouped bar You have many series
What is the total, and what is it made of? Stacked bar You must compare the upper parts
What share is one part of the whole? Pie or donut There are many small parts
How did it change over time? Line graph The x axis is not ordered
How are the values spread? Histogram You have very few values
How do groups differ in spread? Box plot You need the exact shape
Where do the values sit, one by one? Dot plot You have many values
Are two numbers related? Scatter plot One of them is a category
What do groups have in common? Venn diagram You need quantities
What happened, in what order? Timeline The gaps must be to scale
Which words come up most? Word cloud You need exact counts

Types of Graphs in Statistics

In a statistics class, most graphs are about distributions and relationships. Those are the histogram, the box plot, the dot plot, the stemplot (also called a stem-and-leaf plot) and the scatter plot. They all work on numbers rather than on categories. If your class names a graph that is not in this guide, such as a frequency polygon, the ideas above still apply: decide what question it answers and then check what it hides.

The four statistics tools on this site are the histogram maker, the box plot maker, the dot plot maker and the scatter plot maker. Each one takes pasted numbers and draws the chart in your browser, with no sign-up.

Common Mistakes

  1. Cutting the bars. A bar axis that starts above zero makes small differences look large. Start at zero.
  2. Too many slices. A pie with a dozen slices cannot be read. Switch to bars.
  3. Using a bar chart for a distribution. If the horizontal axis is a number line split into ranges, you want a histogram, where the boxes touch.
  4. Connecting categories with a line. Lines imply order and change.
  5. Leaving out labels. Give every chart a title, label the axes, and add units.
  6. Using color as the only signal. Add labels or values, so the chart still works in print and for readers who cannot tell certain colors apart.
  7. Showing a relationship as proof of a cause. A scatter plot shows that two things move together, nothing more.

Other Types You Will Meet

This guide sticks to the thirteen types that cover most school and office needs. You will also see area charts, radar charts, heat maps and Gantt charts. We do not cover them here, and the tools on this site do not draw them. When you meet one, ask the same three questions: what does it show, what does it hide, and would a simpler type do the job?

Try It With Your Own Data

The fastest way to learn a chart type is to build one. Open any example above, replace the numbers with your own, and download the result as a PNG or a clean SVG. Nothing you type leaves your browser.

Questions people ask

What are the 10 types of graph?

There is no official list, but ten cover almost every school and office need: bar, grouped bar, stacked bar, pie, line, histogram, scatter plot, box plot, dot plot and Venn diagram. Add donut charts, timelines and word clouds and you have the thirteen covered on this page.

What are the three main graphs?

Most people mean bar, line and pie charts. No body ranks graphs officially, but these three answer the questions that come up most: how amounts compare, how something changes over time, and how a whole is divided. Histograms and scatter plots come next.

What are the five basic types of charts?

No standard list exists, but a practical five for beginners are the bar chart for comparing categories, the line chart for change over time, the pie chart for parts of a whole, the histogram for how values are spread, and the scatter plot for how two numbers relate.

What are the 8 types of graphs?

Again the count is a choice, not a rule. A useful set of eight is bar, stacked bar, pie, line, histogram, box plot, scatter plot and Venn diagram. If your question is about sequence or words, a timeline or a word cloud fits better than any of those eight.

What is a graph vs. a chart?

In everyday use they mean the same thing, and this guide uses them interchangeably. Where people do draw a line, chart is the wider word. The UNLV Libraries data visualization guide, for example, treats graphs as a subtype of charts that plot data, while charts also include tables and diagrams. If your class has a rule, follow it.

What are 20 different types of graphs?

No official count exists, so lists of 16 or 20 mostly reflect how finely each author splits the families. This page covers thirteen types that answer most questions. Others you may meet include area charts, radar charts, heat maps and Gantt charts, which our tools do not draw.