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.
- Which is bigger? Compare categories with a bar chart.
- What is it made of? Show parts of a whole with a pie or donut chart, or a stacked bar.
- How did it change? Follow a trend with a line graph.
- How are the values spread out? Use a histogram, a box plot or a dot plot.
- Are two things related? Plot them on a scatter plot.
- What do these groups share? Draw a Venn diagram.
- What happened, and in what order? Build a timeline.
- Which words come up most? Make a word cloud.
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.
A bar chart with one series. Each bar is one grade, and its length is the number of books. Sample data.
Show the data
| Category | Books |
|---|---|
| Grade 3 | 120 |
| Grade 4 | 95 |
| Grade 5 | 140 |
| Grade 6 | 110 |
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.
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
| Category | Term 1 | Term 2 |
|---|---|---|
| Class A | 72 | 78 |
| Class B | 68 | 74 |
| Class C | 81 | 79 |
| Class D | 75 | 83 |
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.
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
| Category | Paperback | Hardcover | E-book |
|---|---|---|---|
| Grade 3 | 70 | 35 | 15 |
| Grade 4 | 50 | 25 | 20 |
| Grade 5 | 60 | 30 | 50 |
| Grade 6 | 40 | 20 | 50 |
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.
A pie chart with five slices. Each label is the share of the 24 hours. Sample data.
Show the data
| Slice | Value |
|---|---|
| Sleep | 8 |
| School | 7 |
| Homework | 2 |
| Screens | 2 |
| Everything else | 5 |
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.
A donut chart. The hole holds the headline number. Sample data.
Show the data
| Slice | Value |
|---|---|
| Present | 88 |
| Late | 7 |
| Absent | 5 |
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.
A line graph of one series over eight weeks. The slope between two points is the change. Sample data.
Show the data
| Category | 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 |
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.
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 the 14 example values from OpenStax Introductory Statistics 2e. The box runs from 2 to 9 and the median is 7.
Show the data
| Group | Values |
|---|---|
| Example data | 1, 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.
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.
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 studied | Test score | Label |
|---|---|---|
| 1 | 58 | Ava |
| 2 | 62 | Ben |
| 2.5 | 66 | Cam |
| 3 | 61 | Dee |
| 4 | 72 | Eli |
| 4.5 | 70 | Fay |
| 5 | 78 | Gus |
| 6 | 75 | Hal |
| 6.5 | 84 | Ivy |
| 7 | 81 | Jon |
| 8 | 90 | Kim |
| 9 | 88 | Lou |
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.
A two-circle Venn diagram. Cam and Dee do both, so they sit in the overlap. Sample data.
Show the data
| Reads for fun | Plays a sport |
|---|---|
| Ava | Ben |
| Cam | Cam |
| Dee | Dee |
| Eli | Fay |
| Gus | Hal |
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.
A vertical timeline for a class project. Each entry has a date, a title and a short note. Sample data.
Show the data
| Date | Event | Note |
|---|---|---|
| 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. |
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.
A word cloud built from a short word list. Bigger words have bigger weights. Sample data.
Show the data
| Word | Weight |
|---|---|
| chart | 10 |
| data | 9 |
| bars | 7 |
| lines | 6 |
| slices | 5 |
| scale | 5 |
| labels | 4 |
| trend | 4 |
| axis | 3 |
| color | 3 |
| compare | 3 |
| title | 2 |
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
- Cutting the bars. A bar axis that starts above zero makes small differences look large. Start at zero.
- Too many slices. A pie with a dozen slices cannot be read. Switch to bars.
- 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.
- Connecting categories with a line. Lines imply order and change.
- Leaving out labels. Give every chart a title, label the axes, and add units.
- 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.
- 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.