Skip to content

Instantly share code, notes, and snippets.

Forked from mbostock/.block
Last active August 29, 2018 17:37
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Albers USA Projection
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
<title>Albers Projection</title>
path {
fill: #ccc;
stroke: #fff;
stroke-linejoin: round;
<svg width="960" height="500"></svg>
<script src="//"></script>
<script src="//"></script>
d3.json("/mbostock/raw/4090846/us.json", function(error, us) {
if (error) throw error;"svg").append("path")
.datum(topojson.feature(us, us.objects.states))
.attr("d", d3.geo.path());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment