Difference between revisions of "Geo-Mapping Data using Tableau"

From dftwiki3
Jump to: navigation, search
(Select CSV Text File with Data)
(Select CSV Text File with Data)
Line 41: Line 41:
 
<br />
 
<br />
  
==Select CSV Text File with Data==
+
==Select Text File with your CSV Data-File==
 
<br />
 
<br />
 
<center>[[Image:TableauStepByStep_2.png| 400px]]</center>
 
<center>[[Image:TableauStepByStep_2.png| 400px]]</center>

Revision as of 09:19, 26 March 2013

--D. Thiebaut 09:56, 26 March 2013 (EDT)



This is a series of (quick) steps taken to generate a geographical representation of a list of countries appearing in a CSV-formatted file (comma-separated values). The Tableau software package is used to display the map. The representation associates to each country the number of lines in the file that contain that country. For example, if the country "Belgium" appears 100 times in the CSV file, the value 100 will be associated with Belgium, and the darkness of the color used to show the country will be chosen to show the intensity of 100 compared to the most cited country. Some Python code is used to generate the HTML/Javascript code. See the Geo-Mapping with Google Charts tutorial for an alternative way of displaying the data. The advantage of Google Charts is that you get the javascript code which you can directly imbed in your HTML files for interactive graphics.



                                

TableauEcomod1.png

The Data

The data generated was generously shared by Ecomod. It represents the dump of an eXcel spreadsheet in CSV format, and is shown in this page.

Filtering the Data with Python

See the Python to the Rescue section on the Geo-Mapping Data with Google Charts page for ways to process the data and clean it up. Links to the data are also available on that page.

Tableau

Tableau is a package (currently available for Windows, but that work fine virtualized on Mac OSX) that can be downloaded as a free Trial version from TableauSoftware.com. Tableau has a wealth of graphical format for representing data. They provide a drag-and-drop interface that is powerful for quickly getting plots illustrating quickly trends and hidden stories. Check out the Tableau introduction video. It is worth the time.

Here we're using Tableau Version 8, trial version.

Plotting Ecomod's Data, Step-by-Step

Open Tableau

  • Click on Connect to Data
TableauStepByStep 1.png


Select Text File with your CSV Data-File


TableauStepByStep 2.png


TableauStepByStep 3.png


  • Select Connect Live as your Data Connection.


TableauStepByStep 4.png


TableauStepByStep 5.png