What is the main difference between a horizontal and a vertical bar chart?
A vertical bar chart has bars that go up and down, showing categories on the bottom (x-axis). A horizontal bar chart has bars that go left to right, showing categories on the side (y-axis).
Click to reveal answer
beginner
How do you create a vertical bar chart in Tableau?
Drag a dimension to Columns and a measure to Rows. Tableau will automatically create vertical bars representing the measure values for each category.
Click to reveal answer
beginner
How can you switch a vertical bar chart to a horizontal bar chart in Tableau?
Click the 'Swap Rows and Columns' button in the toolbar or drag the dimension to Rows and the measure to Columns.
Click to reveal answer
intermediate
Why might you choose a horizontal bar chart over a vertical one?
Horizontal bar charts are better when category names are long or when you have many categories, making labels easier to read.
Click to reveal answer
intermediate
What is a best practice when designing bar charts for accessibility?
Use clear labels, sufficient color contrast, and avoid 3D effects. Also, ensure bars start at zero to avoid misleading viewers.
Click to reveal answer
In Tableau, which shelf do you place a dimension to create a vertical bar chart?
AFilters
BRows
CColumns
DPages
✗ Incorrect
Placing a dimension on Columns and a measure on Rows creates vertical bars.
What does clicking the 'Swap Rows and Columns' button do in Tableau?
ASorts the bars alphabetically
BFilters the data
CAdds a new measure
DChanges the chart orientation from vertical to horizontal or vice versa
✗ Incorrect
Swapping rows and columns flips the axes, changing bar chart orientation.
Which type of bar chart is better for displaying long category names?
AVertical bar chart
BHorizontal bar chart
CPie chart
DScatter plot
✗ Incorrect
Horizontal bar charts allow more space for long category labels.
What should the baseline of bars in a bar chart be for accurate comparison?
AZero
BThe average value
CThe maximum value
DAny value
✗ Incorrect
Bars should start at zero to avoid misleading viewers about differences.
Which Tableau feature helps you quickly change a vertical bar chart to horizontal?
ASwap Rows and Columns button
BShow Me panel
CData pane
DFilter shelf
✗ Incorrect
The Swap Rows and Columns button flips the axes to change orientation.
Explain how to create and switch between vertical and horizontal bar charts in Tableau.
Think about where dimensions and measures go on the shelves.
You got /3 concepts.
Describe best practices for designing bar charts that are easy to read and accessible.
Consider what makes charts clear and fair to viewers.
You got /5 concepts.
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
Step 1: Understand vertical bar chart layout
Vertical bars are created by placing the dimension on Columns and the measure on Rows in Tableau.
Step 2: Match the layout to options
Dimension on Columns and Measure on Rows matches this layout exactly.
Final Answer:
Dimension on Columns and Measure on Rows -> Option A
Quick Check:
Vertical bars = Dimension on Columns, Measure on Rows [OK]
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
Step 1: Analyze shelf placement
Category on Rows and Sales on Columns creates vertical bars representing sales per category.
Step 2: Identify chart type
This layout produces a vertical bar chart, not horizontal or other chart types.
Final Answer:
A vertical bar chart showing sales per category -> Option D
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
Step 1: Identify cause of vertical bars
Vertical bars appear when dimension is on Rows and measure on Columns.
Step 2: Fix by swapping shelves
To get horizontal bars, swap dimension to Columns and measure to Rows.
Final Answer:
Swap the dimension and measure between Rows and Columns shelves -> Option C
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
Step 1: Set up horizontal bar chart for sales
Horizontal bars require dimension on Rows and measure on Columns.
Step 2: Set up vertical bar chart for profit
Vertical bars require dimension on Columns and measure on Rows.
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.
Final Answer:
For sales: Dimension on Rows, Measure on Columns; For profit: Dimension on Columns, Measure on Rows -> Option B
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 unknownstrongwhile earning +1 Grip toward your certificate.