Skip to content

Instantly share code, notes, and snippets.

@mbecica
Created November 28, 2011 05:23
Show Gist options
  • Save mbecica/1399211 to your computer and use it in GitHub Desktop.
Save mbecica/1399211 to your computer and use it in GitHub Desktop.
d3 circles on map projection
d3.json("data/earthquakes.json", function(r) {
points.selectAll("circle")
.data(r.features)
.enter().append("svg:circle")
.attr("r", 10)
.attr("cx", function(d){return map(d.geometry.coordinates)[0];})
.attr("cy", function(d){return map(d.geometry.coordinates)[1];})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment