Getting Started
Data Visualization and Design | CUNY Graduate Center
This tutorial will guide you through downloading everything you need for this class, embedding your Tableau Visualizations into your Site and Customizing your Site. Send the link to your Academic Commons site and your Tableau Public Page to Michelle mmcsweeney@gc.cuny.edu
Goals
By the end of this tutorial, you will be able to: – Make a site on the CUNY Academic Commons – Make a simple visualization in Tableau – Embed a Tableau visualization on your site
Data
UN Population Estimates 1950-2015
Steps
Part I
Download Tableau
- Go to Tableau Public
- Click download the app
- Install the app on your computer
Register for Tableau Public
- Go to Tableau Public
- Make an account
Register on the CUNY Academic Commons
- Navigate to: https://commons.gc.cuny.edu/sites/
- Register a profile if you have not done so already
- Select ‘Create A Site’
- Select ‘Create A Site’ again
- Name your site whatever you wish and fill in the requisite information
- You cannot change the site domain later
- You can change the site title later
- Select the Default Template (you can and will change this)
- Select ‘Create Site’
Your site will be pre-populated with a Sample Page and a Sample Blog Post.
That’s it! You’re ready to move on to Part 2!
Part II
In this section, we will make a simple line chart.
Question: How has world population changed from 1950-2015?
- Launch Tableau
- You should see a blue panel on the left titled Connect
- Click on Microsoft Excel, and find the UN Populations Estimates Dataset
- Drag the Population Estimates UN sheet into the center space titled Drag Sheets Here
- Click Sheet 1 in the bottom left corner
- A blank screen will appear where you can create your first visualization.
SAVE YOUR PROJECT
The variables in you dataset have been split up into Dimensions (categorical variables) and Measures (numerical variables).
First start with the basic shape 1. Drag the Year pill to Columns 2. Drag the Population pill to Rows. Notice the Population changed to ‘SUM’ meaning that it is now the SUM of the Population across all variables for each year.
New Question: How has population changed in different regions from 1950-2015?
- Drag Region to Color
New Question: How has population changed in different regions from 1985-2015? 4. Click the dropdown menu that appears when you hover of the Year data pill 5. Select Show Filter 6. Adjust the Year Filter from 1980 to 2015
SAVE YOUR PROJECT
Add a Title and Citation
- Double click on Sheet 1 and title your sheet Population by Region 1985-2015
- Add a caption to the bottom with the data source. UN Population Estimates by Country 1950-2015
SAVE YOUR PROJECT
Publish your visualization to Tableau Public
9. Click on the ‘Share’ icon at the top right of the page
10. Save your visualization to Tableau Public.
11. Navigate to your Tableau Public Account & Find your visualization
12. Select the ‘Share’ icon near the bottom of the page.
13. Copy the url (NOT the embed code) The Academic Commons (AC) has a special embed code that handles Tableau visualizations
You’ve made your first visualization and are ready to move on to Part 3!!
Part III
Here is an Example that may help
In this section, you will upload your visualization to the CUNY Academic Commons
- Navigate back to the Commons and your website
- Open the Dashboard
- Select Pages >> Add New
- Title your page – whatever you like, maybe ‘First Visualization’ or ‘Population by Region’.
- You can use the Block editor if you prefer or go directly into the Classic/Text editor
BLOCK EDITOR
1. Make a text Block to write your description in
2. Add an HTML Block under the Text Block
3. Use this code:
TEXT EDITOR
1. Use the 3 dots menu to ‘Switch to Classic Editor’
2. Select the ‘Text’ Tab
3. Write your description at the top of the page
4. Embed your Visualization by putting the link to YOUR_TABLEAU_URL
on its own line.
To embed, copy the Tableau share URL as per the following GIF:
And then:
- For the Block Editor, select the “Shortcode” block and input the following:
- For the Classic Editor, simply paste the Tableau share URL on its own line.
You are welcome to make your site as elaborate or as simple as you wish. Most of the Customization comes from the ‘Appearances’ options. You can use any Theme (the course website uses Attitude because it is clean and has all the necessary elements by default.)
Your blog must have a few key elements:
* A home page or landing page that introduces and orients your audience
* A menu where a user can link to any of your posts. This can be hierarchical or not.
* Both text and visuals. The text will explain your visualization, what you did and how you got there. The visuals will be your interactive Tableau visualizations
* Your name
* Everything on your site should have a purpose (i.e., don’t add a calendar unless you need a calendar)
WHERE DO I: Customize the Tag Line, Title, etc. from Appearance >> Customize Change the Menu in Appearance >> Menu (you can make child links here, too with the drag and drop ordering interface)
Change the Privacy Settings in Settings >> Reading & Settings >> Writing
Change the font size Appearance >> Customize >> Custom CSS >> p {font-size: 125%}
A few tips: Pages are typically thought of as static whereas posts are typically thought of as regularly updated. It doesn’t matter which you choose just remain consistent and be sure they display in your menu. Don’t spend too much time customizing your site, it’s easy to get lost in the options. You can always come back after the class is over to edit and tweak the features of your site. For now, you need a place to display your work.
Tutorial written by Michelle McSweeney, PhD for Introduction to Data Visualization, a course in the M.A. in Digital Humanities at the Graduate Center at CUNY. More information about the program is available here.