KNOWLEDGE BASE

How to Zoom in on Scatter Plot upon Selecting Certain Area Manually


Published: 21 Dec 2023
Last Modified Date: 22 Dec 2023

Question

How to zoom in on a scatter plot upon selecting a specific area manually?

 

Environment

  • Tableau Desktop

Answer

Please follow along with this example by opening the packaged workbook found in the Attachments section.

There is a scatter plot chart named Sheet1 in the Sample.twbx packaged workbook which will demonstrate how to make the view to zoom in automatically when selecting an area on the view.

1. Right-click on Product ID and select Create > Set...

 User-added image

Select Use all in the Sets editing window, then click OK to save the change.
User-added image

2. Create a calculation field named Is in Sets? and input the formula below:
[Product ID] in [Product ID Set]
True(Boolean) will be returned only when the Product ID selected is in the Product ID Set

3. Add the field Is in Sets? to the Filter card and select True.
User-added image

4. On the menu select Worksheet > Actions to add a Set Action as instructed below:
User-added image

*****Please refer to the video for detailed steps of adding Set actions and the final results generated.

5. Click on points on the scatter plots to see the effect of zoom in.

User-added image
Did this article resolve the issue?