2. Quem sou eu? Who am I? Кто я?
Helder da Rocha
argonavis.com.br
Tech * Science * Arts
HTML & Web technologies since 1995
Author of books and courses about
Java, XML and Web technologies
helderdarocha.art.br
3. This is a hands-on tutorial
• You will learn how to create an interactive thematic map using: HTML, CSS, JavaScript,
SVG, D3.js, CSV, GeoJSON (You should know HTML, CSS and some JavaScript)
• Main steps:
1. Get shapefile from naturalearthdata.com
2. Convert to GeoJSON with mapshaper.org and run script to filter data
3. Get data from open data portals: un.data.org and geonames.org
4. Generate strings for SVG paths using D3.js
5. Apply scales, colors, projections and interactive features
• Get code from: https://github.com/argonavisbr/tutorial-geojson
• Playground: JSFiddle (follow links in Readme.md)
• Slides only illustrate the main steps (run the examples and download the code!)
25. Summary
• D3.js is a powerful library containing a set of tools for data
visualization based on openstandards
• Used by large news portals (NY Times, The Guardian, etc.) in
stunning visualizations and interactive maps. It's also used in
higher-level datavis frameworks, tools and services.
• This tutorial demonstrates how D3 can be used to create
thematicmaps using opendata: an essential skill in data
journalism