# Getting Started

### 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

## Part I

1. Go to Tableau Public
3. Install the app on your computer

#### Register for Tableau Public

1. Go to Tableau Public
2. Make an account

#### Register on the CUNY Academic Commons

1. Navigate to: https://commons.gc.cuny.edu/sites/
2. Register a profile if you have not done so already
3. Select ‘Create A Site’
4. Select ‘Create A Site’ again
5. Name your site whatever you wish and fill in the requisite information
1. You cannot change the site domain later
2. You can change the site title later
6. Select the Default Template (you can and will change this)
7. 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?

1. Launch Tableau
2. You should see a blue panel on the left titled Connect
3. Click on Microsoft Excel, and find the UN Populations Estimates Dataset
4. Drag the Population Estimates UN sheet into the center space titled Drag Sheets Here
5. Click Sheet 1 in the bottom left corner
6. A blank screen will appear where you can create your first visualization.

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?

1. 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

1. Double click on Sheet 1 and title your sheet Population by Region 1985-2015
2. Add a caption to the bottom with the data source. UN Population Estimates by Country 1950-2015

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.

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

## Part III

Here is an Example that may help

1. Navigate back to the Commons and your website
2. Open the Dashboard
3. Select Pages >> Add New
4. Title your page – whatever you like, maybe ‘First Visualization’ or ‘Population by Region’.
5. 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 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

Change the font size Appearance >> Customize >> Custom CSS >> `p {font-size: 125%}`