Tableau Bubble Chart

Tableau Bubble Chart is used to display the data in circles. We can define each bubble using any of our Dimension members and size by Measure value.

Bubble chart in Tableau plays a significant role in creating Maps. For instance, we can use them on top of the Map to display the Sales by Postal code, etc. In this article, we will show how to create this using a Custom SQL Query. So, visit the Connecting to Server article.

SELECT Geo.EnglishCountryRegionName, 
       Geo.StateProvinceName, 
       Geo.City, 
       Prod.EnglishProductName, 
       Prod.Color, 
       Fact.OrderQuantity, 
       Fact.TotalProductCost, 
       Fact.SalesAmount, 
       Fact.TaxAmt, 
       Fact.[Freight]
FROM DimProduct AS Prod 
   INNER JOIN FactInternetSales AS Fact 
      ON Prod.ProductKey = Fact.ProductKey 
   INNER JOIN DimSalesTerritory AS Terry 
      ON Terry.[SalesTerritoryKey] = Fact.[SalesTerritoryKey] 
   INNER JOIN DimGeography AS Geo 
      ON Geo.[SalesTerritoryKey] = Terry.[SalesTerritoryKey]

First Approach to Create Tableau Bubble Chart

In this example, we will create a Tableau Bubble Chart for the State dimension against the Sales Amount size. First, Drag and Drop the State Dimension from the Dimension Region to the Text Field in the Marks Shelf.

From the below screenshot, you can see the available State names in the report.

Add Dimension to Text Marks Shelf

Next, Drag and Drop the Sales Amount from the Measures Region to the Size Field in the Tableau Marks Shelf.

Add Measure to Sum Field

Once you drag them, the following screenshot will be displayed. By default, the Desktop displays a Tree Map.

Treemap

To change the Default TreeMap to Bubble Chart in Tableau, we have to change the default Automatic option in the Marks Shelf. Please expand the drop-down list and change the Automatic to Circle.

Change Marks Type of Treemap to Circles

Once you change, Bubble Chart will be displayed with State Name as the Text field and Sum of Sales Amount as the circle size. From the below screenshot, you can see that the Size of California State is bigger than the remaining states because the Sales Amount is higher than in the other states.

Tableau Bubble Chart 2

Let us add the Sales Amount to the Text field as well. By this, we can see the State name and the Sales Amount. To do this, Please drag the Sales Amount from the Measures region to the Text field present in the Marks Shelf.

Tableau Bubble Chart 3

Let us add color to our Tableau Bubble Chart. We can do it by dragging the Calculated field Profit to the Colors field in Marks Shelf.

Tableau Bubble Chart 4

Once you have done this, the following Bubble Chart screenshot will be displayed. The State name with the Maximum number of Sales is filled in Dark Green, and the Least Sales Amount is in light green.

Change Tableau Bubble Chart Colors 5

Sort Tableau Bubble Chart

A Tableau bubble chart also allows us to sort the circles. So please click on the Sort by descending order button present in the toolbar.

Sort Tableau Bubble Chart 6

You can see that our report is formatted in descending order

Tableau Bubble Chart 7

Format Bubble Text

To format the Tableau bubble chart Data Labels, Please click on the Text field inside the Marks Shelf. After you click on it, the following window will be displayed. We are doing basic formatting for now, so click on the … button beside the text.

Show Marks Labels in Tableau Bubble Chart 8

Here, we added extra text Sales, Profit beside the < SUM(SalesAmount) > and < SUM(Profit) > and also changed the font style to Lucida Sans.

Format Data Labels in. Tableau Bubble Chart

See the Formatted Text inside the Tableau Bubble Chart.

Tableau Bubble Chart 10

Creating Tableau Bubble Chart second approach

This method of creating a Bubble chart is very easy and straightforward. Please press and hold the control key, select the Dimension (s) and Measure(s) from the respective region, and select the below-shown chart from the Show Me window.

Choose Tableau Bubble Chart from Show Me window 11

Once you do, the desktop will create it for you.

Tableau Bubble Chart 12

Comments are closed.