Tableau 3D

What is Tableau 3D?

Tableau 3D refers to the data visualization tools and models for visualizing 3-dimensional datasets in Tableau. Currently, Tableau has capabilities and tools to support visualizing two-dimensional data. 3D models are not very common in Tableau and Tableau doesn’t support 3D visualization natively, however, you can create 3D charts to deepen your knowledge and create bespoke views. 

The below visual is a simple Tableau 3D scatter plot where the dataset is represented in a 3-dimensional view.

Tableau 3D - Intro
Key Takeaways
  • Tableau 3D refers to data visualization tools and models for visualizing 3-dimensional datasets.
  • Tableau does not support 3D models, but you can create Tableau 3D charts, Tableau 3D scatter plots, and Tableau 3D maps by using the Tableau public extensions.
  • The .OBJ file format is extensively used to format 3D modeling and computer graphics.

Tableau 3D Models

As such Tableau does not support 3D models. However, you can create Tableau 3D charts, Tableau 3D scatter plots, and 3D maps by using the Tableau public extensions that enable you to represent your data in 3-dimensional format.

How to create Tableau 3D?

While Tableau natively doesn’t support any 3D visualization, you can create Tableau 3D visuals such as Tableau 3D scatter plots or maps, etc. by using a complex workaround.

To create a 3D chart, follow the steps outlined below:

Step 1: Connect to your dataset from the Tableau interface. Ensure that your dataset contains the required information to plot in a 3D view.

Step 2: Drag and drop the geospatial fields to the Tableau view to create a map or scatter plot.

Step 3: Adjust the edges, dimensional measures, height, depth, etc. to make it visually effective

Step 4: Enhance the user interactivity by adding the highlights, filters, or tooltips as required.

What is the .OBJ format?

The .OBJ file format is extensively used to format 3D modeling and computer graphics. Initially, it was coined by Wavefront Technologies for their Advanced Visualizer software. Currently, it is the standard file format used across various software systems to exchange 3D model data. Essentially, it is a plain text file containing the geometry of a 3-dimensional model which includes vertices, polygons, mesh, groups, and model. These parameters enable the file format easy to read and edit. The .OBJ format is compatible with several 3D modeling applications.

A sample .OBJ file format is provided below:

Tableau 3D - OBJ Format

As you can see, the file format includes mesh, group names, vertices, and faces. A mesh in .OBJ file comprises of polygon which is also known as faces. Each polygon or face encompasses a set of vertices. Meshes and groups can be included in groups. 

Similarly, if you notice, the file contains usemtl Color_006, a code segment that indicates a material name which is a texture in a 3D model.  

Similarly, if you notice, the file contains usemtl Color_006, a code segment that indicates a material name which is a texture in a 3D model.  

The .OBJ file format resembles a nesting doll with certain levels of geometric diagram. The .OBJ file contains the details around the edges and normal lighting, which can be filtered out. A .OBJ file is a suitable choice for most of the 3D modeling systems due to the support it provides for polygonal and geometry format. You can create 3D figures such as spherical or cuboid or any complex geometrical shape in 3D using this file format. 

The below diagram shows a 3D Lego model.

Tableau 3D - 3D Lego model

How to get data from .OBJ format and upload it to Tableau?

The .OBJ file format works sequentially and does not assign any numbers to the vertices, faces, or meshes.  You can use an automated script such as Python or Excel to generate four different files, i.e., Vertices.csv, Faces.csv, Group.csv, and Colors.csv.

To get the data from .OBJ format and upload it to Tableau, follow the steps below

Step 1: The .OBJ file for faces looks like the one shown below.

Tableau 3D - get data - Step 1

Upload the .OBJ file is attached to Excel, and delimiters are applied while importing the data.

get data - Step 1 - delimiters

Once the data import is successfully completed, your data will look as per below:

Tableau 3D - get data - Step 1 - import

Apply the changes outlined below to the Test.OBJ file.

  • Add data type as Text to all the values
  • Remove columns with “f” and add numeric columns (1,2,3,4)

Post transformation, your data will look like below.

get data - Step 1 - Post transformation

Save the file into Faces.csv.

Step 2: Upload the .OBJ file to Excel and make similar changes as mentioned in Step 1.

Post transformation, your data will look like the following:

Tableau 3D - get data - Step 2

Save the file into Vertices.csv.

Step 3: In the Tableau desktop, connect to the Faces.csv file.

Tableau 3D - get data - Step 3

Step 4: Apply an inner join with Vertices.csv. To do so, double-click on Faces.csv logical table.

get data - Step 4

Drag the Vertices.csv file to the join canvas in the physical layer.

get data - Step 4 - canvas

Define the join condition as shown below.

Tableau 3D - get data - Step 4 - join condition

Now, your dataset is ready to be deployed in Tableau to create a 3D model in a polygon shape.

get data - Step 4 - dataset

You can create a view by defining the number of vertices in a face.

Furthermore, you can enhance the view of your 3D model by adding color and groups to it. For color enhancement, consider adding textures to specify the choice of colors in your 3D model.

Note: Adding groups to your 3D model is not mandatory, and you should consider adding groups to your model only if you intend to add any filter in some parts of your viz.

While 3D models in Tableau are not very common, for your analysis, you can always refer to the various visuals published to the Tableau public for better understanding.

In the next section, we will look at a few examples to understand a bit more about Tableau 3D. By following these instructions, you can create various Tableau 3D visualizations yourself in the view.

Examples

In this section, we will demonstrate different examples to which you can refer to create a Tableau 3D chart.

Example #1

In this example, we will demonstrate creating a Tableau 3D chart using the Top 10 Global Companies dataset. The Top 10 Global Companies dataset contains information about the Top 10 companies in the world including the country of origin, Sales, Profit, Assets, and Market Value.

To create a Tableau 3D chart, follow the instructions outlined below:

Step 1: Import your dataset into the Tableau public using File Navigator.

Example 1 - Step 1

Step 2: Add another file using a connector, i.e., Add – Add a Connection – Microsoft Excel.

Tableau 3D - Example 1 - Step 2

Step 3: Drag Sheet1 to the Join/Union canvas in Tableau.

Example 1 - Step 3

Step 4: Establish a relationship between the two files in the canvas, i.e., Top 10 Global Companies and Example 1. 

Click on the down arrow next to Select a field for Top 10 Global Companies – Create Relationship Calculation from the drop-down.

Tableau 3D - Example 1 - Step 4

Step 5: In the Relationship Calculation window, enter 1 and click on OK to save the changes.

Tableau 3D - Example 1 - Step 5

Step 6: Repeat the same step for Sheet 1.

Example 1 - Step 6
Tableau 3D - Example 1 - Step 6 - Relationship

Now, as you can see, the relationship between the two files has been established.

Example 1 - Step 6 - Two files

Step 7: Navigate to a new worksheet. Right-click on Path – Create – Bins to create a bin.

Tableau 3D - Example 1 - Step 7

Step 8: In the Edit Bins screen, define the bin size as 1.

Tableau 3D - Example 1 - Step 8

Step 9: Click on Analysis – Create Calculated Field.

Example 1 - Step 9

Step 10: Specify the logic to create a calculated field called Index.

Tableau 3D - Example 1 - Step 10

Step 11: Create a calculated field @MC by specifying the logic in the calculation editor. 

Tableau 3D - Example 1 - Step 11

Step 12: Repeat Step 11 to create another calculated field @Row.

Tableau 3D - Example 1 - Step 12

Step 13: Drag the Company Name to the Columns. Change the Marks Type to Shape on the Marks card.

Example 1 - Step 13

Step 14: Drag the Company Name to the Shape on Marks card.

Tableau 3D - Example 1 - Step 14

Step 15: Drag Path (bin) to the Rows shelf.

Tableau 3D - Example 1 - Step 15

Step 16: Drag Path(bin) to the Detail on the Marks card and remove it from the Rows shelf.

Example 1 - Step 16

Step 17: Drag @Row to the Rows shelf.

Tableau 3D - Example 1 - Step 17

Step 18:  Right-click on @Row and select Compute Using – Path (bin).

Tableau 3D - Example 1 - Step 18

Tableau will change the visual to the shapes shown below.

Tableau 3D - Example 1 - Step 18 - Visual

Step 19: Create a custom folder in your Tableau Repository – Shapes.

Tableau 3D - Example 1 - Step 19

Step 20: Save the Tableau shapes to this location.

Tableau 3D - Example 1 - Step 20

Step 21: Click on Shape on the Marks card. In the Edit Shape screen, Reload Shapes.

Tableau 3D - Example 1 - Step 21

Step 22: Click on the Shape Palette drop-down and choose Custom.

Tableau 3D - Example 1 - Step 22

Step 23: Select the shapes for each data item, as shown below.

Tableau 3D - Example 1 - Step 23

Now, your Tableau 3D Bar chart is ready for visualization.

Tableau 3D - Example 1 - Step 23 - 3d bar chart

Example #2

In this example, we will demo creating a 3D map using the U.S. Comic Book Stores Geolocation. The U.S. Comic Book Stores Geolocation contains a collection of comic book stores located in the United States.

To create a Tableau 3D map, follow the instructions outlined below:

Step 1: Import the dataset into Tableau public desktop using File – Open.

Tableau 3D - Example 2 - Step 1

Step 2: Drag the spatial fields to the Tableau view.

Tableau 3D - Example 2 - Step 2

Step 3: Click on Analysis – Untick Aggregate Measures.

Tableau 3D - Example 2 - Step 3

Step 4: Drag State to the Color on the Marks card.

Tableau 3D - Example 2 - Step 4

Step 5: Adjust the size of the map as required.

Tableau 3D - Example 2 - Step 5

Step 6: Click on Map – Background Maps – Dark.

Tableau 3D - Example 2 - Step 6

Tableau will update the view, as shown below.

Tableau 3D - Example 2 - Step 6 - Update

Step 7: Navigate to a new Dashboard tab.

Example 2 - Step 7

Step 8: In the Dashboard pane, choose Automatic size.

Tableau 3D - Example 2 - Step 8

Step 9: Drag Example 2 to the Dashboard view and choose Floating to adjust the view.

Example 2 - Step 9

After adjustment, the view looks like the one provided below.

Tableau 3D - Example 2 - Step 9 - View

Step 10: Click on File – Save to Tableau Public.

Example 2 - Step 10

Tableau will save the visual to Tableau Public.

Tableau 3D - Example 2 - Step 10 - Public

Step 11: In the web browser that opens, click on Edit.

Example 2 - Step 11

Step 12: Click on Extension.

Tableau 3D - Example 2 - Step 12

Step 13: In the Add an Extension window, search for the Kepler keyword and then select Kepler.gl.

Example 2 - Step 13

Step 14: Click on Add to Dashboard.

Example 2 - Step 14

Step 15: Tableau will render the extension in the view. Click on Configure.

Example 2 - Step 15

Step 16: Select the data model as Example 2 and click on Next.

Example 2 - Step 16

Step 17: Click on Save.

Tableau 3D - Example 2 - Step 17

Step 18: On the Kepler.gl pane, add a new layer and choose A type from the drop-down menu.

Tableau 3D - Example 2 - Step 18

Step 19: Specify the Columns, Color, Radius, and Height as shown below.

Tableau 3D - Example 2 - Step 19

Tableau will update the chart, as shown below.

Tableau 3D - Example 2 - Step 20

Step 20: Enable the 3D map by choosing the icon, as shown below.

Tableau 3D - Example 2 - Step 20 - 3D Map

Step 21: Adjust the height of the map. Now, your Tableau 3D map is ready for visualization.

Tableau 3D - Example 2 - Step 21

Importance Things to Note

  • Tableau doesn’t support 3D visualization as they are not aligned with the best practices of data presentation.
  • Be clear with the use case before you recommend plotting any Tableau 3D visualization for your stakeholders.

Frequently Asked Questions (FAQs)

1. How does Tableau 3D differ from traditional Tableau visualizations? Are there any limitations to Tableau 3D?

Traditional Tableau visualizations are 2D data visualizations such as pie charts, bar charts, scatter plots, line graphs, etc. Traditional Tableau visualizations are easy to read and user-friendly for data interpretation.

Tableau 3D is a visualization representation in 3D that is more suited for geospatial, scatter plots, mesh surfaces, etc. However, note that Tableau doesn’t support or recommend using 3D visualization.

2. Can Tableau 3D be used for virtual reality (VR) or augmented reality (AR) visualizations?

Currently, Tableau does not support or recommend using 3D visualizations. Hence it can’t be used for virtual reality (VR) or augmented reality (AR) visualizations.

3. Is Tableau 3D suitable for all industries and use cases?

No, Tableau 3D is not suitable for all industries. The specific use case may include industries such as engineering, architectural setup, or similar nature.

Download Template

This article must help understand the Tableau 3D, with its formula and examples. We can download the template here to use it instantly.

Guide to What is Tableau 3D. We learn definition, how to get data from .OBJ format, what is its, how to create it, with examples, and points to note. You can learn more from the following articles –

Tableau Conditional Formatting

Context Filter in Tableau

Tableau Bridge

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *