If you wish to visualize data so that the information is represented as vertical bars, create a:

Use bar charts to compare data across categories. You create a bar chart by placing a dimension on the Rows shelf and a measure on the Columns shelf, or vice versa.

A bar chart uses the Bar mark type. Tableau selects this mark type when the data view matches one of the two field arrangements shown below. You can add additional fields to these shelves.

For more information about the Bar mark type, see Bar mark.

Note: At the end of the procedure is an extra step you can take to display totals at the tops of the bars.

Creates Vertical Bars Creates Horizontal Bars
If you wish to visualize data so that the information is represented as vertical bars, create a:
If you wish to visualize data so that the information is represented as vertical bars, create a:

To create a bar chart that displays total sales over a four-year period, follow these steps:

  1. Connect to the Sample - Superstore data source.
  2. If you wish to visualize data so that the information is represented as vertical bars, create a:

    Note: In Tableau 2020.2 and later, the Data pane no longer shows Dimensions and Measures as labels. Fields are listed by table or folder.

  3. Drag the Order Date dimension to Columns and drag the Sales measure to Rows.
  4. Notice that the data is aggregated by year and column headers appear. The Sales measure is aggregated as a sum and an axis is created, while the column headers move to the bottom of the view. Tableau uses Line as the mark type because you added the date dimension.

    If you wish to visualize data so that the information is represented as vertical bars, create a:

  5. On the Marks card, select Bar from the drop-down list.
  6. If you wish to visualize data so that the information is represented as vertical bars, create a:

    The view changes to a bar chart.

    If you wish to visualize data so that the information is represented as vertical bars, create a:

    The marks (which are bars in this case) are vertical because the axis is vertical. The length of each mark represents the sum of the sales for that year. The actual numbers you see here might not match the numbers you see—the sample data changes from time to time.

    If you wish to visualize data so that the information is represented as vertical bars, create a:

  7. Drag the Ship Mode dimension to Color on the Marks card.
  8. The view shows how different shipping modes have contributed to total sales over time. The ratios look consistent from year to year.

    If you wish to visualize data so that the information is represented as vertical bars, create a:

  9. Drag the Region dimension to Rows, and drop it to the left of Sales to produce multiple axes for sales by region.
  10. If you wish to visualize data so that the information is represented as vertical bars, create a:

  11. To view data in the West region only, you can filter out the other regions. To do this, drag the Region dimension again, this time from the Data pane to the Filters shelf.
  12. If you wish to visualize data so that the information is represented as vertical bars, create a:

  13. In the Filter [Region] dialog box, clear the Central, East, and South check boxes, and then click OK.
  14. If you wish to visualize data so that the information is represented as vertical bars, create a:

This view gives you insight into your data—for example, how the ship mode changed in the West over the four-year period.

Check your work! Watch steps 1-7 below.

If you wish to visualize data so that the information is represented as vertical bars, create a:

Note: In Tableau 2020.2 and later, the Data pane no longer shows Dimensions and Measures as labels. Fields are listed by table or folder.

One Step Further: Add Totals To Stacked Bars

Adding totals to the tops of bars in a chart is sometimes as simple as clicking the Show Mark Labels icon in the toolbar. But when the bars are broken down by color or size, each individual segment would labeled, rather than the total for the bar. With a few steps, you can add a total label at the top of every bar even when the bars are subdivided as in the view you just created. In the following procedure you will technically be adding a reference line. But by configuring that "line" in a certain way, you end up with the labels you want.

  1. From the Analytics pane, drag a Reference Line into the view and drop it on Cell.

    If you wish to visualize data so that the information is represented as vertical bars, create a:

  2. In the Edit Line, Band, or Box dialog box, set the aggregation for SUM(Sales) to Sum, set Label to Value, and set Line under Formatting to None:

    If you wish to visualize data so that the information is represented as vertical bars, create a:

    Then click OK to close the Edit Reference Line, Band, or Box dialog box.

  3. Your view now has currency totals at the top of each bar:

    If you wish to visualize data so that the information is represented as vertical bars, create a:

    You may need to adjust the view to make it look just right. If the bars are too narrow, the numbers are truncated; to fix this, press Ctrl + Right on the keyboard to make the bars wider. Or if you want to center the totals over the bars—by default, they are left-aligned. Do the following:

  4. Right-click any of the totals on the bar chart and select Format.

  5. In the Format window, in the Reference Line Label area, open the Alignment control and select the Center option for Horizontal alignment:

    If you wish to visualize data so that the information is represented as vertical bars, create a:

Other resources

Creation of a Grouped Bar Chart(Link opens in a new window) A knowledge base article with embedded videos that describes how to create grouped bar charts, also known as side-by-side bar charts.

What graph uses vertical bars to represent data?

A bar chart represents data categories using vertical or rectangular bars that are proportional to numerical values. It highlights the relationship between data groups and statistical values. A bar graph details changes in data groups over time. A bar chart shows the frequency of each data category.

Which of the following function will create a vertical bar chart?

R uses the function barplot() to create bar charts. R can draw both vertical and Horizontal bars in the bar chart.

What kind of bar graph labels the vertical axis?

The vertical axis on the left or right side of the bar graph is called the y-axis. The horizontal axis at the bottom of a bar graph is called the x-axis. The height or length of the bars represents the value of the data. The value corresponds to levels on the y-axis.

Which chart is best used if you want to visually show the trend your data is suggesting?

A line chart reveals trends or change over time. Line charts can be used to show relationships within a continuous data set, and can be applied to a wide variety of categories, including daily number of visitors to a site or variations in stock prices.