Bird
Raised Fist0
Tableaubi_tool~15 mins

Bar charts (horizontal and vertical) in Tableau - Deep Dive

Choose your learning style10 modes available
Overview - Bar charts (horizontal and vertical)
What is it?
Bar charts are simple visual tools that show data using rectangular bars. The length of each bar represents a value, making it easy to compare different items. Vertical bar charts have bars going up and down, while horizontal bar charts have bars going left to right. They help people quickly see differences and patterns in data.
Why it matters
Without bar charts, understanding and comparing data would be slow and confusing. They turn numbers into pictures that anyone can understand fast. This helps businesses make better decisions by spotting trends and differences clearly. Bar charts make data talk in a way that feels natural and easy.
Where it fits
Before learning bar charts, you should know basic data concepts like categories and values. After mastering bar charts, you can explore more complex visuals like stacked bars, histograms, and dashboards. Bar charts are a foundation for all data visualization skills.
Mental Model
Core Idea
Bar charts turn numbers into bars so you can see and compare values quickly by their length.
Think of it like...
Imagine a row of books on a shelf where each book's thickness shows how popular it is. Thicker books mean more popularity, just like longer bars mean bigger values.
Categories ──────────────▶
Values

Vertical Bar Chart:
  ↑
  │  █
  │  ████
  │  ██████
  │_________
    Cat1 Cat2 Cat3

Horizontal Bar Chart:
Cat1 ████
Cat2 ███████
Cat3 ██

Bars grow vertically or horizontally to show size.
Build-Up - 7 Steps
1
FoundationUnderstanding Bar Chart Basics
🤔
Concept: Learn what bar charts are and how they represent data with bars.
A bar chart uses bars to show values for different categories. Each bar's length matches the value it represents. Vertical bars go up and down; horizontal bars go left and right. In Tableau, you drag a category to Columns or Rows and a measure to the opposite to create a bar chart.
Result
You get a simple visual where you can see which categories have bigger or smaller values by looking at bar lengths.
Knowing that bar length equals value helps you read and create charts that communicate data clearly.
2
FoundationCreating Vertical Bar Charts in Tableau
🤔
Concept: How to build vertical bar charts step-by-step in Tableau.
1. Open Tableau and connect to your data. 2. Drag a category field (like Product) to Columns. 3. Drag a measure field (like Sales) to Rows. 4. Tableau automatically creates vertical bars. 5. Adjust colors or labels for clarity.
Result
A vertical bar chart appears showing sales for each product category as bars going up.
Building vertical bars by placing categories on Columns and measures on Rows is the standard Tableau approach.
3
IntermediateSwitching to Horizontal Bar Charts
🤔Before reading on: do you think swapping the category and measure fields changes the bar orientation? Commit to your answer.
Concept: Learn how to flip a vertical bar chart to horizontal by switching fields.
To make horizontal bars, drag the category field to Rows and the measure field to Columns. This flips the bars to go left to right. You can also use the 'Swap Rows and Columns' button in Tableau to switch quickly.
Result
The chart changes orientation, showing horizontal bars representing values for each category.
Understanding that bar orientation depends on which axis holds categories versus measures lets you control chart layout easily.
4
IntermediateWhen to Use Horizontal vs Vertical Bars
🤔Before reading on: do you think horizontal bars are better for long category names or many categories? Commit to your answer.
Concept: Learn the practical reasons to choose horizontal or vertical bar charts.
Vertical bars work well for fewer categories with short names. Horizontal bars are better when category names are long or there are many categories, as they fit better and remain readable. Also, horizontal bars can be easier to compare when values vary widely.
Result
You can pick the best bar chart orientation for your data and audience to improve clarity.
Knowing when to use each orientation improves communication and avoids clutter or confusion.
5
IntermediateAdding Labels and Colors for Clarity
🤔
Concept: Enhance bar charts by adding data labels and colors to highlight information.
In Tableau, drag the measure field to the Label shelf to show values on bars. Use the Color shelf to assign colors by category or value ranges. Colors help group or emphasize bars, while labels give exact numbers.
Result
Bars display clear values and colors, making the chart easier to understand at a glance.
Visual cues like labels and colors guide the viewer’s attention and reduce guesswork.
6
AdvancedHandling Large Data with Bar Charts
🤔Before reading on: do you think bar charts work well with hundreds of categories? Commit to your answer.
Concept: Learn how to manage bar charts when data has many categories or values.
Bar charts become cluttered with too many bars. Use filters to show top N categories or group smaller ones into 'Others'. Sorting bars by value helps focus on important data. In Tableau, use filters and calculated fields to manage this.
Result
Charts remain readable and meaningful even with large datasets by focusing on key categories.
Knowing how to simplify charts prevents overwhelming viewers and keeps insights clear.
7
ExpertCustomizing Bar Charts with Calculated Fields
🤔Before reading on: do you think you can create bars that show percentages instead of raw values using Tableau calculations? Commit to your answer.
Concept: Use Tableau calculated fields to create bars showing percentages or custom metrics.
Create a calculated field like 'Percent of Total' using: SUM([Sales]) / TOTAL(SUM([Sales])). Replace the measure with this field to show bars as parts of the whole. Combine with table calculations for dynamic results. This allows advanced insights beyond raw counts.
Result
Bar charts display relative sizes, helping compare parts to the whole clearly.
Mastering calculated fields unlocks powerful custom visuals that answer deeper questions.
Under the Hood
Bar charts work by mapping data values to bar lengths along an axis. Tableau uses its data engine to aggregate values per category, then draws rectangles scaled proportionally. The orientation depends on which axis holds categories versus measures. Tableau’s rendering engine updates visuals instantly when fields change.
Why designed this way?
Bar charts were designed to make comparisons easy by using length, a visual cue humans understand quickly. Vertical and horizontal options exist to handle different label lengths and reading directions. Tableau’s drag-and-drop interface reflects this by letting users assign fields to axes to control orientation naturally.
Data Source
   │
Aggregation Engine
   │
┌───────────────┐
│ Category Field │───▶ Assign to Columns or Rows
└───────────────┘
   │
┌───────────────┐
│ Measure Field  │───▶ Assign to opposite axis
└───────────────┘
   │
Rendering Engine
   │
Draw Bars (length ∝ value)
   │
Display Chart (vertical or horizontal)
Myth Busters - 4 Common Misconceptions
Quick: Do longer bars always mean better or higher values? Commit to yes or no.
Common Belief:Longer bars always mean better or more important values.
Tap to reveal reality
Reality:Longer bars only mean higher numeric values, not necessarily better or more important. Context matters to interpret what the values represent.
Why it matters:Misreading bar length as quality or importance can lead to wrong decisions if the data measures something else, like costs or errors.
Quick: Can you create a horizontal bar chart by just rotating a vertical one in Tableau? Commit to yes or no.
Common Belief:You can rotate a vertical bar chart to make it horizontal without changing data fields.
Tap to reveal reality
Reality:In Tableau, you must swap the category and measure fields or use the swap button; simply rotating the chart image is not possible.
Why it matters:Trying to rotate without swapping fields wastes time and causes confusion about how Tableau handles axes.
Quick: Do bar charts work well with hundreds of categories without any adjustments? Commit to yes or no.
Common Belief:Bar charts can show hundreds of categories clearly without any filtering or grouping.
Tap to reveal reality
Reality:Too many bars make charts cluttered and unreadable; filtering or grouping is necessary for clarity.
Why it matters:Ignoring this leads to confusing visuals that hide insights instead of revealing them.
Quick: Does adding colors to bars always improve chart clarity? Commit to yes or no.
Common Belief:Adding colors to bars always makes the chart easier to understand.
Tap to reveal reality
Reality:Too many colors or poor color choices can confuse viewers and distract from the data.
Why it matters:Misusing color reduces chart effectiveness and can mislead interpretation.
Expert Zone
1
Bar chart orientation affects how viewers scan and interpret data; horizontal bars often improve readability for long labels.
2
Calculated fields and table calculations in Tableau allow dynamic bar lengths that reflect complex business metrics, not just raw sums.
3
Sorting bars by value or custom logic can highlight trends or exceptions better than default alphabetical order.
When NOT to use
Bar charts are not ideal for showing parts of a whole (use pie or stacked bar charts instead) or for continuous data distributions (use histograms). For time series trends, line charts are better.
Production Patterns
Professionals use bar charts in dashboards to compare sales by region or product, often combining filters and parameters to let users explore data interactively. They also use calculated fields to show growth rates or percentages within bars.
Connections
Histograms
Related visualization type that groups continuous data into bars.
Understanding bar charts helps grasp histograms, which use bars to show frequency distributions instead of categories.
User Interface Design
Shares principles of clear visual communication and layout.
Knowing how bar charts guide attention informs UI design choices for effective information display.
Music Equalizer Display
Similar visual pattern showing levels as bars.
Recognizing bar charts in everyday tech like equalizers helps appreciate their intuitive power to represent changing values.
Common Pitfalls
#1Using vertical bars when category names are too long, causing label overlap.
Wrong approach:Drag Category to Columns and Measure to Rows without adjusting orientation, resulting in cramped labels.
Correct approach:Drag Category to Rows and Measure to Columns to create horizontal bars that fit long labels.
Root cause:Not considering label length and chart orientation leads to unreadable charts.
#2Showing too many categories in one bar chart, making it cluttered.
Wrong approach:Use all categories without filtering or grouping, resulting in hundreds of tiny bars.
Correct approach:Apply a Top N filter or group smaller categories into 'Others' to simplify the chart.
Root cause:Ignoring visual limits of bar charts causes information overload.
#3Adding too many colors to bars, confusing the viewer.
Wrong approach:Assign a different color to every single bar without grouping or logic.
Correct approach:Use color to highlight meaningful groups or ranges, keeping palette simple and consistent.
Root cause:Misunderstanding color’s role leads to distracting visuals.
Key Takeaways
Bar charts use bar length to make comparing values easy and fast to understand.
Orientation depends on which axis holds categories and which holds values; swapping them changes vertical to horizontal bars.
Choosing the right orientation and adding labels or colors improves clarity and communication.
Bar charts can become cluttered with too many categories; filtering and grouping keep them readable.
Advanced Tableau users create calculated fields to show percentages or custom metrics as bar lengths for deeper insights.

Practice

(1/5)
1. Which of the following best describes a vertical bar chart in Tableau?
easy
A. Dimension on Columns and Measure on Rows
B. Dimension on Rows and Measure on Columns
C. Both Dimension and Measure on Rows
D. Both Dimension and Measure on Columns

Solution

  1. Step 1: Understand vertical bar chart layout

    Vertical bars are created by placing the dimension on Columns and the measure on Rows in Tableau.
  2. Step 2: Match the layout to options

    Dimension on Columns and Measure on Rows matches this layout exactly.
  3. Final Answer:

    Dimension on Columns and Measure on Rows -> Option A
  4. Quick Check:

    Vertical bars = Dimension on Columns, Measure on Rows [OK]
Hint: Vertical bars: dimension columns, measure rows [OK]
Common Mistakes:
  • Confusing horizontal and vertical bar chart layouts
  • Placing both dimension and measure on the same shelf
  • Swapping rows and columns incorrectly
2. Which Tableau shelf placement creates a horizontal bar chart?
easy
A. Dimension on Rows, Measure on Columns
B. Dimension on Columns, Measure on Rows
C. Measure on Rows only
D. Dimension on Rows only

Solution

  1. Step 1: Recall horizontal bar chart setup

    Horizontal bars are made by placing the dimension on Rows and the measure on Columns.
  2. Step 2: Identify correct option

    Dimension on Rows, Measure on Columns matches this setup exactly.
  3. Final Answer:

    Dimension on Rows, Measure on Columns -> Option A
  4. Quick Check:

    Horizontal bars = Dimension on Rows, Measure on Columns [OK]
Hint: Horizontal bars: dimension rows, measure columns [OK]
Common Mistakes:
  • Mixing up rows and columns shelves
  • Placing only measures without dimensions
  • Choosing options with missing shelves
3. Given a dataset with 'Category' as dimension and 'Sales' as measure, what will be the result of placing 'Category' on Rows and 'Sales' on Columns in Tableau?
medium
A. A scatter plot comparing categories and sales
B. A horizontal bar chart showing sales per category
C. A line chart showing sales trend
D. A vertical bar chart showing sales per category

Solution

  1. Step 1: Analyze shelf placement

    Category on Rows and Sales on Columns creates vertical bars representing sales per category.
  2. Step 2: Identify chart type

    This layout produces a vertical bar chart, not horizontal or other chart types.
  3. Final Answer:

    A vertical bar chart showing sales per category -> Option D
  4. Quick Check:

    Category rows + Sales columns = vertical bars [OK]
Hint: Category rows + Sales columns = vertical bar chart [OK]
Common Mistakes:
  • Assuming horizontal bars instead of vertical
  • Confusing bar chart with line or scatter plot
  • Ignoring shelf placement rules
4. You created a bar chart but the bars are vertical when you wanted horizontal bars. What is the most likely fix?
medium
A. Remove the dimension from the view
B. Change the mark type to Line
C. Swap the dimension and measure between Rows and Columns shelves
D. Add a filter to the data

Solution

  1. Step 1: Identify cause of vertical bars

    Vertical bars appear when dimension is on Rows and measure on Columns.
  2. Step 2: Fix by swapping shelves

    To get horizontal bars, swap dimension to Columns and measure to Rows.
  3. Final Answer:

    Swap the dimension and measure between Rows and Columns shelves -> Option C
  4. Quick Check:

    Swap shelves to switch bar orientation [OK]
Hint: Swap dimension and measure shelves to change bar direction [OK]
Common Mistakes:
  • Changing mark type instead of shelf placement
  • Removing dimension causing no bars
  • Adding filters unrelated to orientation
5. You want to create a dashboard showing sales by region with horizontal bars, but also want to add a vertical bar chart showing profit by region side by side. How should you set up the shelves for each chart in Tableau?
hard
A. For sales: Dimension on Columns, Measure on Rows; For profit: Dimension on Rows, Measure on Columns
B. For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows
C. For sales: Dimension on Columns, Measure on Columns; For profit: Dimension on Rows, Measure on Rows
D. For sales: Measure on Rows, Dimension on Rows; For profit: Measure on Columns, Dimension on Columns

Solution

  1. Step 1: Set up horizontal bar chart for sales

    Horizontal bars require dimension on Rows and measure on Columns.
  2. Step 2: Set up vertical bar chart for profit

    Vertical bars require dimension on Columns and measure on Rows.
  3. Step 3: Match options to setup

    For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows correctly assigns shelves for both charts.
  4. Final Answer:

    For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows -> Option B
  5. Quick Check:

    Horizontal bars = dim rows, measure columns; Vertical bars = dim columns, measure rows [OK]
Hint: Horizontal bars: dim rows; Vertical bars: dim columns [OK]
Common Mistakes:
  • Using same shelf setup for both charts
  • Placing measures on wrong shelves
  • Confusing dimension and measure roles
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard