18
DATA(VIS) JOURNALISM -Drawing Data Maps with Fusion Table Nakho Kim ([email protected]) Feb 2012

Data Visualization and Journalism Workshop: Fusion Tables

Embed Size (px)

DESCRIPTION

Presentation slides from the Data Visualization and Journalism Working Group at UW-Madison J-school. Workshop on the tool Google Fusion Tables.

Citation preview

Page 1: Data Visualization and Journalism Workshop: Fusion Tables

DATA(VIS) JOURNALISM

-Drawing Data Maps with Fusion Table

Nakho Kim ([email protected])Feb 2012

Page 2: Data Visualization and Journalism Workshop: Fusion Tables

Why Data Maps?

• Many interesting things are place-based– Distribution of social resources– Communities of people– Movements of people and resources– …and of course, cases

• Good for finding patterns – Difference, clustering, overlap

Page 3: Data Visualization and Journalism Workshop: Fusion Tables

• Don’t confuse this with conceptual mappings

Page 4: Data Visualization and Journalism Workshop: Fusion Tables

Good Data Map Stories

• Basic stories: Where things are going on– Putting pins on the board– http://spotcrime.com/wi/madison

• Better stories: Where patterns are stronger– Difference and clustering– http://www.wisconsinwatch.org/viz/graphics-mapping-scott-walkers-suppo

rt/

• Great stories: Clues on “why”– Often involves overlapping layers– http://www.guardian.co.uk/news/datablog/interactive/2011/aug/16

/riots-poverty-map

Page 5: Data Visualization and Journalism Workshop: Fusion Tables

Google Fusion Tables

• Good for: Fusing data, visualizing as a map• Key characteristics– Uses Google docs ‘table’ file– Public / private repository of datasets– Single layers visualization for each table– But can use APIs to overlay layers

Page 6: Data Visualization and Journalism Workshop: Fusion Tables

Basic Maps Provided

• Location pin map• Heat map (based on density of pins)• Intensity map• Only for country-scale and above • For smaller scales, color-coded custom polygons

are used

Page 7: Data Visualization and Journalism Workshop: Fusion Tables

The Process

• Upload / Import datasets• Find other datasets to merge• Visualize• Save table files• Use code or apps to call overlay layer APIs

Page 8: Data Visualization and Journalism Workshop: Fusion Tables

Preparing the Data

• DO YOU HAVE THE LOCATION DATA?– Latitude and longitude (decimal degrees)– Place names (addresses, country names)– KML snippets (point, line, polygon)

• Have it either in your dataset or merge one that has them

Page 9: Data Visualization and Journalism Workshop: Fusion Tables

Upload / Import datasets

• A. Upload– Log in to Google Docs– Create “Table”– Upload your csv file

• Verify columns to import• Add description (source)

• B. Browse – Log in to Google Fusion Tables– Search around

• Example: US poverty

Page 10: Data Visualization and Journalism Workshop: Fusion Tables

Merge Datasets

• Frequently Used Datasets– Geo shapes– Census and other large-scale public data

• Note– The data in the merged table is not a backup copy• It will be updated live when the owner does so• You cannot modify that data

– If you need to, export that data and re-upload

Page 11: Data Visualization and Journalism Workshop: Fusion Tables

• Process– Sign in, enable Merge.–Click ‘Merge’ and paste the dataset URL– Specify the common column of the two

datasets• Reminder: clean up your data so there IS one.

– Select columns to merge– Enter new name for merged table

Page 12: Data Visualization and Journalism Workshop: Fusion Tables

Visualize

• Visualizing the Map Display– Click "Configure styles“– Modify color, lines & images as needed

• Custom Intensity Map– Configure styles -> Polygon -> Fill color– Buckets -> Set number of categories, variable and

range

Page 13: Data Visualization and Journalism Workshop: Fusion Tables

• Visualizing the Info Window– Click ‘Configure Info Window’– Modify the code• Change the message and variables• Enter data column names inside { }

– Other APIs can be inserted, too• Example:

http://www.google.com/fusiontables/DataSource?snapid=65503• Uses Google Chart API inside info window

Page 14: Data Visualization and Journalism Workshop: Fusion Tables

Table Files

• Visualization settings are saved within the table file

• They are NOT saved when exporting to csv or KML– In another tool that imports the KML from the

table, it will not reflect the visualization setting

Page 15: Data Visualization and Journalism Workshop: Fusion Tables

Building Overlays

• Example– Free health clinics in WI + WI median Income

intensity map• Go to each File -> About / get numeric ID• Use API, the coding way• …OR the app way

– http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/fusiontableslayer_builder.html

– Specify layers to add, copy the code

Page 16: Data Visualization and Journalism Workshop: Fusion Tables

Integrating Google Charts

• Make your choice(s)– http://code.google.com/apis/chart/

• Learn the API, or use a editor– http://imagecharteditor.appspot.com/

• Replace { } for column names• Paste the code into the info window.

Page 17: Data Visualization and Journalism Workshop: Fusion Tables

Exercise: How Did They Do It?

• Keep a keen eye on parsing other projects• Example:

– http://www.projects.chrislkeller.com/ft-highcharts/

• Rundown– District boundary data (Shapes)– Voter turnout by district (dataset)– Info window (moved to bottom / done with CSS) • chart1(table) / Uses outside API• chart2(bar) / Uses outside API

Page 18: Data Visualization and Journalism Workshop: Fusion Tables

Examples of the Week

• Good– WEAVE (tool)• Java based. Fast interactivity. Many windows.• Good for exploring data, not so for flexible mashups• Example: http://demo.oicweave.org:8080/weave.html?defaults=obesity.xml

• Bad– NYT: “Most mentioned NFL player”• Hard to read coded values from complex silhouettes • http://www.nytimes.com/interactive/2012/02/04/sports/football/most-mentioned-players-on-espn.html