Last active
April 1, 2017 01:59
-
-
Save mbostock/2869760 to your computer and use it in GitHub Desktop.
Revisions
-
mbostock revised this gist
Apr 1, 2017 . 4 changed files with 2 additions and 34 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ redirect: 3757132 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,32 +1 @@ Moved to <a href="/mbostock/3757132">/mbostock/3757132</a>. Binary file not shown. -
mbostock revised this gist
Feb 9, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ license: gpl-3.0 -
mbostock revised this gist
Oct 31, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ </style> <svg width="960" height="500"></svg> <script src="//d3js.org/d3.v3.min.js"></script> <script> var projection = d3.geo.mercator(); -
mbostock revised this gist
Jun 11, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,8 @@ var svg = d3.select("svg"); d3.json("countries.json", function(error, collection) { if (error) throw error; svg.selectAll("path") .data(collection.features) .enter().append("path") -
mbostock revised this gist
Jun 11, 2015 . 3 changed files with 2 additions and 180 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ var svg = d3.select("svg"); d3.json("countries.json", function(error, collection) { if (error) return console.error(error); svg.selectAll("path") .data(collection.features) -
mbostock revised this gist
Jun 11, 2015 . 1 changed file with 12 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,14 +10,22 @@ </style> <svg width="960" height="500"></svg> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> <script> var projection = d3.geo.mercator(); var path = d3.geo.path() .projection(projection); var svg = d3.select("svg"); d3.json("readme.json", function(error, collection) { if (error) return console.error(error); svg.selectAll("path") .data(collection.features) .enter().append("path") .attr("d", path); }); </script> -
mbostock revised this gist
Oct 12, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
LoadingSorry, something went wrong. Reload?Sorry, we cannot display this file.Sorry, this file is invalid so it cannot be displayed. -
mbostock revised this gist
Jun 4, 2012 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,9 @@ <script> d3.json("readme.json", function(collection) { d3.select("svg").selectAll("path") .data(collection.features) .enter().append("path") .attr("d", d3.geo.path().projection(d3.geo.mercator())); }); -
mbostock revised this gist
Jun 4, 2012 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,9 +14,8 @@ <script> d3.json("readme.json", function(collection) { d3.select("svg").append("path") .datum(collection) .attr("d", d3.geo.path().projection(d3.geo.mercator())); }); -
mbostock created this gist
Jun 4, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ <!DOCTYPE html> <meta charset="utf-8"> <title>Mercator Projection</title> <style> path { fill: #ccc; stroke: #fff; } </style> <svg width="960" height="500"></svg> <script src="http://d3js.org/d3.v2.js?2.9.1"></script> <script> d3.json("readme.json", function(collection) { d3.select("svg").selectAll("path") .data(collection.features) .enter().append("path") .attr("d", d3.geo.path().projection(d3.geo.mercator())); }); </script>