Bar Chart (2024)

What is a bar chart?

A bar chart shows the counts of values for levels of a categorical or nominal variable.

How are bar charts used?

Bar charts help you understand the levels of your variable and can be used to check for errors.

What are some issues to think about?

Bar charts are used for nominal or categorical data. For continuous data, use a histogram instead.

Bar charts show the frequency counts of data

See how to create a bar chartusing statistical software

Bar charts show the frequency counts of values for the different levels of a categorical or nominal variable. Sometimes, bar charts show other statistics, such as percentages. Figure 1 is an example of a bar chart for responses to a survey question.

Figure 1: Bar chart displaying frequency counts for survey data

The bars show the levels of the variable; the height of the bars show the counts of responses for that level.

What is the difference between bar charts and histograms?

Two key differences between histograms and bar charts are the gaps between bars and the types of data. Histograms do not have gaps between bars, while bar charts do. However, with many software tools, you can revise a bar chart so that it does not have gaps between the bars, which leads to the second key difference between histograms and bar charts.

Histograms are used with continuous data; bar charts are used with categorical or nominal data. See the "Bar charts and types of data" section below for more detail.

What is the difference between bar charts and Pareto charts?

APareto chartis a special example of a bar chart. For a Pareto chart, the bars are ordered from highest to lowest. These charts are often used in quality control to identify the areas with the most problems.

Like a histogram, a Pareto chart does not have gaps between bars. Unlike a histogram, the Pareto chart summarizes counts for a nominal or categorical variable.

Figure 2 gives an example of a Pareto chart that summarizes types of findings in an audit of business processes. It includes a legend for the categories, which allows for longer labels that make the categories easier to read.

Figure 2: Pareto chart displaying categorical data with a corresponding legend

Charting statistics other than counts

While all of the examples show bar charts with counts, these graphs can also show other statistics, such as percentages. Most software tools give options for the statistic to chart.

Bar chart examples

Software is often used to create bar charts. Software usually allows users to create either vertical or horizontal bar charts, as well as add custom features to a bar chart.

Below are a few examples of bar charts. You may wish to consult a statistician or the many books and websites available to determine which type of bar chart works best for your data.

Figures 3-15 use data from 10 bags of candy. Each bag has 100 pieces of candy and the count for the five flavors has been collected for each bag. The goal is for the bags to have nearly equal counts for each flavor, meaning we expect to have roughly 20 pieces of candy for each flavor in each bag. Across 10 bags, we expect to have approximately 200 pieces of candy for each flavor.

Our first step is to create a bar chart of the data, as shown in Figure 3:

Figure 3: Bar chart displaying the count for each type of candy found across 10 bags

The software orders the bars alphabetically by the name of the flavor, which might be the best way to show the results for your audience.

However, you might want to order the bars by decreasing counts, as shown in Figure 4:

Figure 4: Same bar chart as Figure 3 now displaying counts in descending order

We can now see that the total counts of pieces of candy for Grape and Orange are the same. This was true in Figure 3, but it was not as easy to see.

The bars are vertical. For long graph labels, a horizontal bar chart is often better. Figure 5 shows the same data with longer labels for the flavors in a horizontal chart. If we had used a vertical bar chart instead, the labels might have been harder to read.

Figure 5: Horizontal bar chart

We have used the same color for all bars in these examples. As a general rule, using many colors makes a graph harder to understand.

But, suppose that the candy company requires that every bag have at least 18 pieces of each flavor. Across 10 bags, we need at least 180 pieces for each flavor. Since our data shows only 120 pieces for Cherry, we want to highlight this problem. Figure 6 uses a shaded bar to do this. Other options are to use a different color to highlight the bar for Cherry.

Figure 6: Horizontal bar chart from Figure 5 now with a shaded bar

You might want to add labels to the bars. Figure 7 adds the counts to the end of each bar. This approach helps show that we might also have a problem with the Red Candy Apple flavor, since it meets our requirement of 18 pieces per bag, but just barely.

Figure 7: Horizontal bar chart from Figure 6 now with frequency count labels

How extreme data values affect bar charts

Bar charts show counts of categories in your data. Unlike histograms, bar charts are not affected by extreme values. The bar chart simply shows another bar for the category with very few (or very many) values in the bar. Figure 8 shows a different set of candy data, where the Grape flavor is replaced with Mango. The count for Mango is much lower than expected.

Figure 8: Bar chart displaying an extreme (unexpectedly low) value

Figure 9 shows another example, where Grape is replaced with Pineapple. The count for Pineapple is much higher than expected.

Figure 9: Bar chart displaying extreme (unexpectedly high) value

Bar charts can help identify incorrect values in your data. In Figure 10, “Mango” was misspelled as “Mangi” for one data value, which is a clear data error that should be fixed. Checking your own data for errors with bar charts can be helpful.

Figure 10: Bar chart displaying categories with a clear spelling error

How do I add groups to bar charts?

If there are groups in your data, plotting all the data together in a bar chart can help show patterns across these groups. Figure 11 combines the data from three candy factories.

Figure 11: Bar chart displaying grouped data

From this figure, you can see which factories use which flavor in bags of candy. You can also see the problems, such as Factory A having too few Mango pieces of candy in the bags. In this example, ordering the bars alphabetically makes sense. We cannot order by counts since the order would be different across factories.

In this example, using different colors for the different factories might be helpful. Figure 12 shows each factory with a different color.

Figure 12: Bar chart displaying grouped data colored to represent the different groups

You might want to show the counts on the horizontal axis to make visual comparisons of counts easier, as seen in Figure 13.

Figure 13: Horizontal bar chart displaying grouped data with frequency count labels

While Figure 13 makes it easier to compare counts for the different flavors, it makes it more difficult to determine which flavors are used at the different factories than in Figure 12.

These are just a few of the many ways to add groups to bar charts. For your data, you need to think about the message to your audience and how to build the best graph for that message.

Stacked bar charts

Instead of using groups, you might want to use a stacked bar chart. With a stacked bar chart, you show the responses for your groups, which are the factories for the Candy data. Each group has one bar. The frequency counts for your variable are then stacked within the bar for each factory. For the Candy data, the counts of flavors will be stacked with the bar for each factory. Figure 14 shows a stacked bar chart for the Candy data from the three factories, using a different color for each flavor.

Figure 14: Stacked bar chart displaying grouped data

In Figure 14, we can easily see that only Factory A uses Mango, only Factory B uses Pineapple, and only Factory C uses Grape. By comparing sizes of the stacked sections of the bars, we can also see Factory A uses very few Mango candies, and Factory B uses a lot of Pineapple candies.

Adding a legend is important for a stacked bar chart.Many software tools allow you to add labels to a stacked bar chart, as demonstrated in Figure 15. For example, the labels help us see that Factory B had the same total count for the Cherry and Orange flavors.

Figure 15: Stacked bar chart displaying frequency count labels for candy flavor

You might find it helpful to print a stacked bar chart in grayscale before making final decisions on colors. Also, as Figure 15 shows, when adding labels, you need to be sure that the label can be read with the background color for each element of the stacked bar.

Bar charts and types of data

Figures 16-20 demonstrate when it makes sense to use bar charts or histograms for different types of data.

Figure 16: Bar chart displaying categorical data, which are suited for this type of chart

Figure 17: Histogram displaying categorical data, which are not suitable for this type of chart

Figure 18: Bar chart displaying nominal data, which are suitable for this type of chart

Figure 19: Histogram displaying nominal data, which are not suitable for this type of chart

Figure 20: Histogram displaying continuous data, which are suitable for this type of chart

Categorical or nominal data: appropriate for bar charts

Bar charts make sense for categorical or nominal data, since they are measured on a scale with specific possible values.

With categorical data, the sample is often divided into groups, and the responses have a defined order. For example, in a survey where you are asked to give your opinion on a scale from “Strongly Disagree” to “Strongly Agree,” your responses are categorical.

With nominal data, the sample is also divided into groups but without any particular order. Country of residence is an example of a nominal variable. You can use the country abbreviation, or you can use numbers to code the country name. Either way, you are simply naming the different groups for the data.

Continuous data: use histograms

Bar charts do not make sense for continuous data, since they are measured on a scale with many possible values. Some examples of continuous data are:

  • Age
  • Blood pressure
  • Weight
  • Temperature
  • Speed

For all of these examples, use histograms instead of bar charts.

Bar Chart (2024)

FAQs

How to answer a bar graph? ›

Steps to Interpret Bar Graphs

Step 1: Determine the number of categories. Step 2: Determine the number of groups, if applicable. Step 3: Determine which category has the highest frequency and which has the lowest frequency.

What is the main weakness of a bar chart? ›

Limited for Time-Series Data: When dealing with time-series data, bar charts might fall short. While they can represent individual data points, they do not capture the continuous flow of data over time, making it challenging to analyze trends effectively.

What are common mistakes in bar graphs? ›

What are the most common bar chart mistakes and how can you avoid them?
  • Mistake 1: Using too many bars.
  • Mistake 2: Using 3D or stacked bars.
  • Mistake 3: Using the wrong scale or axis.
  • Mistake 4: Using inconsistent or inappropriate colors.
  • Mistake 5: Using too much text or labels.
  • Mistake 6: Forgetting the title or legend.
Dec 29, 2023

How do you interpret graph results? ›

Tips for reading charts, graphs & more
  1. Identify what information the chart is meant to convey. ...
  2. Identify information contained on each axis.
  3. Identify range covered by each axis.
  4. Look for patterns or trends. ...
  5. Look for averages and/or exceptions.
  6. Look for bold or highlighted data.
  7. Read the specific data.
Aug 17, 2023

What can a bar graph tell you? ›

A bar chart is used when you want to show a distribution of data points or perform a comparison of metric values across different subgroups of your data. From a bar chart, we can see which groups are highest or most common, and how other groups compare against the others.

How do you explain a bar chart? ›

A bar chart is a graphical representation used to display and compare discrete categories of data through rectangular bars, where the length or height of each bar is proportional to the frequency or value of the corresponding category.

What can you infer from a bar graph? ›

A bar graph is a picture that is made up of bars with different height. Each bar represents a different category. The height of each bar can tell us how often something happens or show us the number of items we have for each group.

What is an example of a bar graph conclusion? ›

For example, the bar graph shows the number of pounds of radishes sold was 50 (because the vertical bar over radishes stops at 50). Furthermore, notice that the bar graph shows the number of pounds of sweet potatoes sold is midway between 70 and 80, so we can conclude that the total number of pounds sold was 75.

What makes a bar chart bad? ›

The biggest problem here is the loss of detail as bar charts can oversimplify, leaving out important information such as variance, distribution, outliers, and trends.

What makes a good bar chart? ›

With bar and column charts this means that your category – or your independent variable - should be your categorical axis, and the amount – or your dependent variable –should be the numerical axis. In other words, the amounts drive the height of the bars.

Why is the bar graph important? ›

It allows you to compare different sets of data among different groups easily. It instantly demonstrates this relationship using two axes, where the categories are on one axis and the various values are on the other. A bar graph can also illustrate important changes in data throughout a period of time.

What are 4 common mistakes made when making a graph chart? ›

Easy Graph Mistakes to Avoid
  • A Graph Without Context.
  • Illegible Text.
  • A Line Graph With An Unordered x-Axis.
  • A Degenerate Line Graph.
  • A Scatterplot With Lots of Identical Data.
  • A Legend With a Zillion Categories.
  • A Pie Chart with a Legend For Each Slice.
  • A Combined-Area Chart with a Non-Addable Value.
Mar 10, 2023

When not to use bar chart? ›

Bar graphs are intended to display counts or proportions, where the bar is filled with data and a higher bar corresponds to a higher count or proportion. In contrast, bar graphs should not be used to present summary statistics (e.g. mean and standard error or standard deviation) for continuous data [1,2].

What is a misleading bar graph? ›

In statistics, a misleading graph, also known as a distorted graph, is a graph that misrepresents data, constituting a misuse of statistics and with the result that an incorrect conclusion may be derived from it.

How to describe data in a bar graph? ›

Descriptive Language for Bar Graphs. Descriptive language for bar graphs enriches the presentation and interpretation of statistical and numerical data. Key vocabulary includes terms like “increase,” “decrease,” “peak,” “trough,” and “stable,” which precisely describe the movements and trends within the graph.

How do you read a bar diagram? ›

How to read Bar Charts. Bar charts can represent quantitative measures vertically, on the y-axis, or horizontally, on the x-axis. The style depends on the data and on the questions the visualization addresses. The qualitative dimension will go along the opposite axis of the quantitative measure.

How do you read a bar chart technical analysis? ›

Reading a bar chart

These charts can be read by comparing bars; the current bar is compared to the previous one to understand if it is an up or a down. A bar is positive if it closes higher than the previous bar, while a bar that closes lower than the previous is negative.

Top Articles
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 6206

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.