How to Create a Bar Chart or Bar Graph in Google Sheets

Create a bar chart in Google Sheets to visualize categorical data with horizontal bars, whose lengths are proportional to the values they represent.

Before creating a chart in Google Sheets or any other application, it is important to understand the data you want to visualize and choose the appropriate chart type.

Bar charts, line charts, and pie charts are the three most popular chart types. They are easy to create and understand, and they serve different purposes.

Bar charts are used to compare different categories of data. Line charts are used to show trends over time. Pie charts are used to show the parts of a whole.

You can create a bar chart and line chart from the same set of data in most cases, but a line chart is better suited for showing continuous progress, while a bar chart is better suited for comparing categories.

People often confuse bar charts and column charts. In a bar chart, the bars are aligned horizontally, whereas in a column chart, the bars are aligned vertically.

How to Create a Bar Chart in Google Sheets: Tips and Tricks

We can use the sample data in the below table with mango production in 5 countries in 2020, 2021, and 2022 in million metric tonnes for the chart.

Please present the data in the following format, where the first column should contain the category (Y-axis) and the subsequent columns the values to compare (series):

Country202020212022
India20.921.522.1
China16.51717.5
Thailand3.13.23.3
Mexico2.72.82.9
Brazil2.32.42.5

This format is better suited for creating a bar chart in Google Sheets. Otherwise, you would have to select the Y-axis and then the series independently.

If you present the data as above, the first column will be used to label the bars on the Y-axis, and the subsequent columns will be used to plot the values for each year.

Assuming the above range is A1:D6, to create a horizontal bar chart in Google Sheets with this data, follow these steps:

  1. Select the data range A1:D6, including the header row.
  2. Click Insert > Chart.
  3. In the Chart editor on the right, select Bar chart from the Chart type drop-down menu.

Note: The chart settings will look like the image below.

Bar chart editor settings in Google Sheets.

Your chart will be ready, and you can compare the three years of mango production in India, China, Thailand, Mexico, and Brazil.

Click Customize to customize the chart. There are several options that you can experiment with. Here are the essential chart customizations for a bar chart in Google Sheets:

Essential Bar Chart Customizations

  1. In the Chart editor, click the Customize tab.
  2. Click Chart and axis titles and click to select Chart title.
  3. Under the Chart title, enter the title you want. For example, “Mango Production in the Top 5 Countries over the Past 3 Years”.
  4. Under Chart style, click 3D.
  5. If you want a transparent background, under Chart style, set the background color to None.

This will create a simple but effective 3D bar chart. You can further customize the chart by changing the bar colors, axis labels, and other settings.

Steps to create and customize a bar chart in Google Sheets.

How to Filter a Bar Chart in Google Sheets

We have learned to create a bar chart in Google Sheets. What about filtering it?

When you want to focus on a few of the categories in a bar chart, you can filter out the others. This way, you can easily compare the remaining categories.

For example, let’s see how to filter out the countries Thailand, Mexico, and Brazil and just compare mango production in India and China.

The best option is to use a slicer.

To add a slicer to control the bar chart categories, follow these steps:

  1. Select the range that you used to create the bar chart, in this case, A1:D6.
  2. Click Data > Add a slicer.
  3. In the Slicer dialog box (sidebar panel), click the Choose a column drop-down menu and select Country.
  4. Click the filter button on the slicer and uncheck the unwanted categories, in this case, Thailand, Mexico, and Brazil.
  5. Click OK.
Steps to add a slicer to filter a bar chart in Google Sheets.

This will filter the bar chart to only show the data for India and China.

Conclusion

We can summarize the steps to create a bar chart in Google Sheets as follows:

  1. Present the data in the correct format:
    • The first column should contain the categories (Y-axis labels).
    • The subsequent columns should contain the values to compare (Series).
  2. Select the data and click Insert > Chart.
    • The keyboard shortcut for this step is Alt + i + h in Windows and Ctrl + Option + i + h in Mac.
  3. Select the “Bar chart” chart type.
  4. Add a slicer if you want to filter the categories.

Related: Basic GANTT Chart in Google Sheets Using Stacked Bar Chart.

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Hierarchical Numbering Sequences in Excel

Creating hierarchical numbering sequences in an Excel spreadsheet can significantly improve the way you...

How to Easily Repeat a Sequence of Numbers in Excel

Excel offers multiple ways to accomplish tasks, and the simplicity of each approach depends...

Create a Sequence of Dates at Every Nth Row in Excel (Dynamic Array)

Would you like to create a sequence of dates in every nth row in...

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.