Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Last active August 29, 2015 13:56
Show Gist options
  • Save jkeefe/ef5c8baf45ef2eaaf8e6 to your computer and use it in GitHub Desktop.
Save jkeefe/ef5c8baf45ef2eaaf8e6 to your computer and use it in GitHub Desktop.
CHRIS
Get the data ....
Census Reporter ... GEOJSON or CSV
US Atlas
JOHN
Fusion Tables
PROS
- Easy
- Usually free
- You have it already
- Good for fast, quick, low-data maps
http://drive.google.com
CREATE -> Fusion Table
upload the census data
Next you need the shapes
Census Shapefiles
http://www.census.gov/cgi-bin/geo/shapefiles2012/main
But you need them to be in KML for Google
One way is to use CartoDB to upload then Export
http://cartodb.com
Using Export to download
CREATE -> Fusion Table
upload the KML
(I did it already, so it's in my account)
Join the tables together with file -> Merge
Style them with the buttons on the left
Legends
Embed them with SHARE
JOHN
CartoDB
PROS
- Friendly interface
- Free to tinker (otherwise paid)
- Great team / support
- Handles bigger data pretty well
- We like it for internal draft maps for reporters
Show median income with wizard
Life in the Middle story
http://www.wnyc.org/story/life-in-the-middle/
The map Jenny Ye made with aSQL statement:
SELECT * FROM life_in_the_middle_merge WHERE median_income < '52865' AND median_income > '50865'
Show sharing with URL
http://cdb.io/OOUH5u
JOHN
Mapbox / Tilemill
PROS
- Complete style control
- Rendered ahead of time
- Superfast load, even on mobile
- Great for high-data maps
Median income across the US
http://project.wnyc.org/median-income-nation/#5/39.859/-74.751
JOHN
QGIS
PROS
- Can change shapefiles
- Billions of other things
- For that moment when you need to change / blend / reproject
Remove water from census trick outlined here:
http://johnkeefe.net/water-begone
CHRIS
Leaflet
CHRIS
D3 svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment