lucia kocincova
/ _lucyia
/ lucyia
lucyia | zip codes of Slovakia
9
2
1
5
Ben Fry | zipdecode
?
how to create an interactive map with d3.js
[crash course]
code on github
1. process / get data
2. setup variables and scales
3. setup projection, zoom handling, tip, ...
4. draw the data
[d3 update pattern]
5. handle the behaviour of zoom, mouse, ...
created by lucyia and calum
Visualizing TFL Accident Data
[ Fatal, Severe, Slight ]
[ Westminster, Camden, ... ]
"2017-07-05T10:03:35.692Z"
"Long Lane junction ..."
-0.101061
51.518929
693758
[ Adult, Child, Unknown ]
[ PedalCycle, Car, ... ]
[ Driver, Pedestrian, Passenger ]
[ 0 ... 99 ]
Google Maps + Canvas Layer + d3
Google Maps (+ Google Maps Data Layer) + d3
controls
& data viz
data points
map
SVG /
Canvas /
HTML / ...
Data Map / ...
Map
layers
d3 /
JavaScript /
WebGL /
Data Layer / ...
Google Maps /
OpenStreetMap / ...
tools
small dataset → D3 + SVG
large dataset → D3 + Canvas
custom map layers
Command-Line Cartography by Mike Bostock
Projections available in D3.js + Extended Geo Projections for D3-geo
Working with D3.js and Canvas: When and How by Irene Ros
Interactive Data Visualization for the Web by Scott Murray
By Lucia Kocincova
Talk at Map Design Tools | British Cartographic Society
Data Analyst and Data Viz somewhere