How to create a scatter plot with colored quadrants in Tableau

A scatter plot is best used when we want to determine whether there is a relationship or correlation between two numeric variables. Depending on how the scatter plot looks, you can infer whether the relationship between the two variables is positive or negative, strong or weak, linear or nonlinear.

Let’s now see how to build a scatter plot with a colored quadrant on Tableau step-by-step. This can help us visualize immediately the quadrant that contains the insights that we deem more relevant for our analysis. Our goal is to create a chart showing the relationship between sales and profits for each manufacturer from the Sample Superstore data source.

Step 1. Create a scatter plot

  1. Connect to the data source Sample – Superstore.
  2. Drag Profit to Columns.
  3. Drag Sales to You will see just one dot on your graph, but don’t worry!
  4. Select Circle from the dropdown list in the Marks card.
  5. Drag Manufacturer and drop it on Detail on the Marks card. Now you’ll have a classic scatter plot showing you the relationship between sales and profit per manufacturer.

Step 2. Add colored quadrants to your scatterplot

  1. On the left pane select the Analytics section. Drag Reference Line on the view and drop it on Table when you see the option appear.

 

  1. Right click on one line and select Format. Under Reference Line choose a color in the Fill Above dropdown menu.
  2. Right click on the other line and select Format. Under Reference Line choose the color white in the Fill Below dropdown menu so that only the quadrant with positive values is colored.
  3. Fit to Entire View.

 

 

Don’t wait! Contact us to learn more and continue to follow upcoming news on our website and LinkedIn channel.