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 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?
Orthographic Projection
license: gpl-3.0
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.
<!DOCTYPE html>
<meta charset="utf-8">
<title>Azimuthal (Orthographic) Projection</title>
path {
fill: #ccc;
stroke: #fff;
<svg width="960" height="500"></svg>
<script src="//"></script>
var projection = d3.geo.orthographic()
var path = d3.geo.path()
var svg ="svg");
d3.json("countries.json", function(error, collection) {
if (error) throw error;
.attr("d", path);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment