KNOWLEDGE BASE

How to Adjust the Width of Each Graph When Two Graphs Are Created in One View with Two Measures


Published: 21 Dec 2022
Last Modified Date: 21 Dec 2022

Question

Is it possible to adjust the width of each graph when two graphs are created in one view with two measures?

User-added image

Environment

  • Tableau Desktop

Answer

Below is an example to adjust the width of Text and Percent of Total graphs using Sample - Superstore data.

User-added image

1. Add SUM(Sales) to Columns.
2. Add Category to Color.
3. Right-click SUM(Sales) in Columns and select Quick Table Calculation > Percent of Total.
4. Create a calculated field and name it INDEX.
-index()*0.1
5. Add INDEX to Columns.
6. Open INDEX mark card and change mark type to Text. Delete Category from Color.
7. Add SUM(Sales) to Text in INDEX mark card.
8. Right-click INDEX in Columns and select Dual Axis.
9. Right-click INDEX header and select Synchronize Axis.
10. Open SUM(Sales) mark card and change it to Bar.
11. Right-click SUM(Sales) in Columns and uncheck Show Header.
12. Change Format as you need.
Did this article resolve the issue?