On Github fillerwriter / esip-mapping
#tornado {
line-width: 1;
line-color: #f6e10c;
line-opacity: 1;
[zoom > 5] {
line-width: 2;
}
[zoom > 7] {
line-width: 4;
}
[MAG = "1"] {
line-color: #feedde;
line-opacity: 1;
}
[MAG = "2"] {
line-color: #fdbe85;
line-opacity: 1;
}
[MAG = "3"] {
line-color: #fd8d3c;
line-opacity: 1;
}
[MAG = "4"] {
line-color: #e6550d;
line-opacity: 1;
}
[MAG = "5"] {
line-color: #a63603;
line-opacity: 1;
}
}
var width = 900,
height = 510;
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
var path = d3.geo.path()
.projection(d3.geo.albersUsa());
d3.json("data/us.json", function(error, us) {
if (error) return console.error(error);
svg.selectAll(".state")
.data(topojson.feature(us, us.objects.states).features)
.enter().append("path")
.attr("class", function(d) { return "state"; })
.attr("d", path);
});
Slides: fillerwriter.github.io/esip-mapping
: Brandon Morrison
: bmorrison@phase2technology.com
D.O: Brandonian