How to Design Butterfly Chart in Tableau in Easy Way

butterfly chart in Tableau is a type of bar chart used to compare two data sets at a time. This chart plots the data as two horizontal bars with the same X-axis in the centre, this kind of bar chart resembling the butterfly wings. Bar chart need to reverse in this case to make bar as resemble of butterfly. This Butterfly Chart in Tableau is easy to design

How can revere bar?

Double-click the axis that you want to edit. You can also right-click the axis, and then select Edit Axis. In the Edit Axis dialog box,  select Reversed  the axis scale.

This butterfly graph is significate for data like comparison of Gender graph, comparison of salary between the countries of age group, population for age group etc.

Below are the dataset used for the butterfly graph

Butterfly Dataset

Red mark measures as calculated fields and below are the calculated formula which has been used for this

Female Count

 

Count(If [Gender]=”F” then [Gender] END)

 

Male Count

 

Count(If [Gender]=”M” then [Gender] END)

 

Zero Axis

 

0  // Comment keep zero only

 

Steps:

  • First step to drag country in rows and Female Count & Male Count into columns. You will see the left side red box that specify two separate text as Agg(Female Count) and Agg(Male Count). Where you can change the chart type, colours etc…, you will see in next steps

Butterfly Step1

  • Drag the zero axis twice next to Female and Male count, and you will se zero axis box at left side in Marks area

Butterfly tableau Step2

  • Now, right click on zero axis and convert the Zero axis into Dual axis.

Butterfly tableau Step3

  • After converting zero axis as dual axis then synchronize the axis so that Zero and Female & male count will be on same level

Butterfly tableau Step4

  • Then right click on Female and male axis > click on edit axis

Butterfly tableau Step5

  • And select Reversed check box

Butterfly tableau Step6

  • You will se small female bar as reversed bar graph as seen below screenshot, now you need to reduce the circle with option in Mark area for zero axis

Butterfly tableau Step7

  • Then change the zero axis setting for Zero axis as as fixed from 0 to automatic

Butterfly tableau Step8

  • Now you can change the colour of bar for female as pink to make difference between both graph

Butterfly tableau Step9

  • Finally drag the count of Employee or you can drag count of Female and Male for each box in Marks area

Butterfly tableau Step10

 

So, the Butterfly Graph in Tableau easy to design.

Watch Video guide:

Below are the few more chart can be created in tableau, steps wise guide for easy to design.

Pie chart in tableau

Simple bar chart in tableau

Scroll to Top