Skip to content

Instantly share code, notes, and snippets.

Forked from mbostock/.block
Last active February 9, 2016 01:21
  • Star 0 You must be signed in to star a gist
  • Fork 1 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 Projection
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
<title>Albers Projection</title>
path {
fill: #ccc;
stroke: #fff;
<svg width="960" height="500"></svg>
<script src="//"></script>
var projection = d3.geo.albers();
var path = d3.geo.path()
var svg ="svg");
d3.json("states.json", function(error, collection) {
if (error) throw error;
.attr("d", path);
Display the source blob
Display the rendered blob
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment