Tableau Directional Vector Map

Directional Vector Map in Tableau

Directional maps help to show the trade routes, shipping and a whole host of directional data represented. The best way to represent this is by using the map in Tableau.  Your boss may ask you to visually represent the amount of items shipped to different locations around the globe. We are going to pre-process the data to represent the origins and destinations.

Pre-requisites:

You will need to set up your data with a geographical variable for origins and destination, shipping amounts.

Data Format Summary:

To create a map chart in Tableau, the most common geographic field that user needs to have in data is “Country” field. This “Country” field is required to plot countries in the Tableau map.

Now, for the vector map in Tableau, apart from having the “Country” field in data, we need to have another field which is required to separate each line between corresponding countries. “PathID” in the attached data refer to this same field.

Following are the brief description of the format of the data and the fields that are being required to build vector map chart in Tableau

  1. Country: This is the mandatory field which lists every single country that user would like to plot on the map
  2. Direction: This field provides an extra information related to trade origin country (represented by ‘org’ in data) and trade destination country (represented by ‘dst’ in data)
  3. Path ID: This is also the mandatory field. We need this field to separate each vector line, to show a relationship between two trade countries
  4. Flow Amount: This field represents the magnitude of the amount of trade between two countries

 

preprocess your data prior to putting in the vector

Steps:

Following are the steps:

  1. Connect to the data source. For reference, purpose data is a csv pictured in the above image we are using the dataset.
  2. Go to Sheet1:
  3. In the “Measures” section double-click on the “Latitude (generated)” and “Longitude (generated)” fields
  4. Drag “Country” field to “Detail” of “Marks” cardAdd Countries using in your Tableau Vector Map to show paths from country to country
  5. In “Marks” card, change the type of chart from “Automatic” to “Line”
  6. Drag “Path ID” field to “Color” of “Marks” cardAdd color to your vector map so that you can differentiate the line
  7. Drag “Flow Amount” measure in “Size” of “Marks” card. This is to change the thickness of the lines in the map chart. The thicker line between countries suggests that the amount of trade happening between those countries is higher.increase the vector weights with a flow amount variable to map the vectors bigger in your map.

Other Articles:

Best Course to Learn Tableau Fast

40 Awesome Tableau Keyboard Shortcuts

Gaelim Holland

Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Adam
Adam
3 years ago

Could you please share original data for this?