Create a Tableau Bar Chart (Complete Guide with Examples)

A bar chart is one of the most commonly used charts in data visualization, especially in tools like Tableau.

It is easy to understand and helps users compare different categories. In Tableau, a bar chart displays data as rectangular bars, with the length or height of each bar representing the value for a category.

In real-world business scenarios, analysts use bar charts to compare sales, revenue, performance, or any measurable data across categories such as products, regions, or time periods.

For example, a sales analyst can use a bar chart to compare monthly sales of different products and quickly identify which product performs best.

Tableau makes it very easy to create bar charts by simply dragging and dropping fields. It automatically generates the chart when the correct data combination is used, making it beginner-friendly and powerful for advanced users.

In this tutorial, I will explain the  Tableau Bar Chart and how to create one with a real-time example to display product sales statistics.

What is a Bar Chart in Tableau?

A bar chart in Tableau is a visual representation of categorical data, with values shown as bars. The length of each bar is directly proportional to the value it represents.

It’s used to compare numerical data, such as sales or quantities, across different categories, such as products or regions.

In the bar chart customizations, we can also sort them, add colors to highlight specific data, or even stack them to show subcategories in a stacked bar chart.

In this chart:

  • One axis shows categories (like product name)
  • Another axis shows numerical values (like sales)
  • Longer bars indicate higher values

Bar charts are widely used because they make comparisons easy. Humans can quickly compare lengths, which helps identify trends, the highest and lowest values.

For example, if you have sales data for different regions, a bar chart can instantly show which region has the highest sales and which has the lowest.

In Tableau, we can also customize the basic bar chart to create the following bar chart type for advanced data visualization.

Why Use a Bar Chart in Tableau?

Bar charts are very popular in Tableau because they are simple and effective. They help answer many important business questions, such as:

  • Which product has the highest sales?
  • Which region performs best?
  • What is the comparison between categories?

Bar charts are especially useful for comparing values across different categories. They clearly show differences and make it easy to understand data at a glance.

Another reason to use bar charts is that they are flexible. You can create vertical or horizontal charts, add colors, sort data, and even create advanced variations, such as stacked bar charts.

How to Create a Bar Chart in Tableau

In this example, we will create a bar chart to visualize sales by product subcategory. For this data visualization, we need to connect Tableau to the data source.

In this, we are using the Tableau superstore data to create the bar chart.

To define the X and Y axes of the bar chart, we need to add the fields to the rows and columns.

Add the Category or Sub-category to the Column in the Tableau data sheet. After this, add the Sales to the Rows for the Y axis.

    Create Bar Chart in Tableau

    After adding rows and columns, Tableau will automatically create a vertical bar chart. Here, the taller bars indicate higher sales, while the shorter bars represent lower sales.

    Check out: Waterfall Chart in Tableau

    To display the sales figure on the bars, add the Sales to the Label card in the marks section.

      Add label to bar chart in Tableau

      We can also adjust the bar thickness in the chart using the slider in the Size card.

      Adjust size of bar chart in Tableau

      Check out: Donut Chart in Tableau

      By default, the bar chart is blue; to change it, click the Color card in the Marks section. Then, from the color palette, select the new color that you want to assign to the bars.

      Change color in Tableau bar chart

      To sort the bars in increasing or decreasing order, click on the sort button on the Y-axis.

      Sort data in tableau bar chart

      To display the same bar chart in horizontal format, click the “Swap Rows and Columns” button in the navigation bar or press “Ctrl+W“.

      Create horizontal bar chart in tableau

      This way, we can create a bar chart in Tableau using the steps above.

      Bar Chart vs Other Charts in Tablue

      Chart TypeUse Case
      Bar ChartCompare categories
      Line ChartShow trends over time
      Pie ChartShow proportions
      Scatter PlotShow relationships

      Frequently Asked Questions

      Q1: What is a bar chart in Tableau?

      A bar chart is a visualization that uses bars to compare data across categories.

      Q2: When should we use a bar chart?

      Use it when comparing values between categories.

      Q3: What is the difference between vertical and horizontal bar charts?

      Vertical charts use columns, while horizontal charts use rows.

      Q4: Can we customize bar charts in Tableau?

      Yes, using colors, labels, filters, and sorting.

      Conclusion

      Tableau bar chart is one of the most powerful and simple visualization tools. It helps users compare data, identify trends, and make better decisions. Whether you are a beginner or an advanced user, mastering bar charts is essential for effective data analysis.

      By understanding how to create, customize, and use bar charts, you can build meaningful dashboards and improve your data storytelling skills.

      You may also like to read:

      Agentforce in Salesforce

      DOWNLOAD FREE AGENTFORCE EBOOK

      Start with AgentForce in Salesforce. Create your first agent and deploy to your Salesforce Org.

      Salesforce flows complete guide

      FREE SALESFORCE FLOW EBOOK

      Learn how to work with flows in Salesforce with 5 different real time examples.