Revisions
-
jasondavies revised this gist
Oct 26, 2012 . 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 @@ -38,7 +38,7 @@ </style> <p id="precision-wrapper">Precision: <span id="precision">200px</span> <script src="http://d3js.org/d3.v3.min.js"></script> <script> var width = 960, -
jasondavies revised this gist
Oct 12, 2012 . 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 @@ -38,7 +38,7 @@ </style> <p id="precision-wrapper">Precision: <span id="precision">200px</span> <script src="https://raw.github.com/jasondavies/d3/projection/d3.min.js"></script> <script> var width = 960, -
jasondavies revised this gist
Sep 28, 2012 . 1 changed file with 2 additions 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 @@ -1,2 +1,4 @@ D3 2.11’s projections will adaptively resample to reduce local distortion of lines. Move the mouse to change the precision, and drag to change the aspect. *Update*: Mike has made some awesome [improvements](http://bl.ocks.org/3795544)! -
jasondavies revised this gist
Sep 26, 2012 . 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 @@ -22,7 +22,7 @@ .graticule { fill: none; stroke: #000; stroke-width: .5px; } -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 26 additions and 6 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 @@ -43,7 +43,12 @@ var width = 960, height = 500, x = d3.scale.linear().domain([0, width]).range([200, 1]), initial = [-71, 42, 0], rotate = initial.slice(), transitioning = false, velocity = [.010, -.002], t0 = Date.now(); var projection = d3.geo.equirectangular() .rotate([0, 30, 0]) @@ -60,12 +65,18 @@ .attr("width", width) .attr("height", height) .call(d3.behavior.drag() .origin(function() { return {x: rotate[0], y: -rotate[1]}; }) .on("dragstart", function() { transitioning = true; }) .on("drag", function(d) { rotate[0] = d3.event.x; rotate[1] = -d3.event.y; projection.rotate(rotate); svg.selectAll(".geometry, .graticule").attr("d", path); }) .on("dragend", function() { transitioning = false; t0 = Date.now(); initial = rotate.slice(); })) .on("mousemove", function() { var px = x(d3.mouse(this)[0]); @@ -89,4 +100,13 @@ .attr("class", "graticule") .attr("d", path); d3.timer(function() { if (transitioning) return; var t = Date.now() - t0; rotate[0] = initial[0] + velocity[0] * t; rotate[1] = initial[1] + velocity[1] * t; projection.rotate(rotate); svg.selectAll("path").attr("d", path); }); </script> -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 2 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 @@ -22,7 +22,7 @@ .graticule { fill: none; stroke: #999; stroke-width: .5px; } @@ -46,7 +46,7 @@ x = d3.scale.linear().domain([0, width]).range([200, 1]); var projection = d3.geo.equirectangular() .rotate([0, 30, 0]) .translate([width / 2 - .5, height / 2 - .5]) .scale(150) .precision(x.range()[0]), -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 2 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 @@ -45,10 +45,10 @@ height = 500, x = d3.scale.linear().domain([0, width]).range([200, 1]); var projection = d3.geo.equirectangular() .rotate([0, 45, 0]) .translate([width / 2 - .5, height / 2 - .5]) .scale(150) .precision(x.range()[0]), path = d3.geo.path().projection(projection), graticule = d3.geo.graticule(), -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 1 addition 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 @@ -1,3 +1,2 @@ D3 2.11’s projections will adaptively resample to reduce local distortion of lines. Move the mouse to change the precision, and drag to change the aspect. -
jasondavies revised this gist
Sep 26, 2012 . 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 @@ -37,7 +37,7 @@ } </style> <p id="precision-wrapper">Precision: <span id="precision">200px</span> <script src="https://raw.github.com/jasondavies/d3/projection/d3.v2.min.js"></script> <script> -
jasondavies revised this gist
Sep 26, 2012 . 2 changed files with 5 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 @@ -1,2 +1,3 @@ D3 2.11’s projections will adaptively resample to reduce local distortion of lines. Move the mouse to change the precision, and drag the world to change the aspect. 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 @@ -46,6 +46,7 @@ x = d3.scale.linear().domain([0, width]).range([200, 1]); var projection = d3.geo.mercator() .rotate([0, 45, 0]) .translate([width / 2 - .5, height / 2 - .5]) .scale(400) .precision(x.range()[0]), @@ -55,7 +56,7 @@ precision = d3.select("#precision"); var svg = d3.select("body").append("svg") .datum({x: 0, y: -45}) .attr("width", width) .attr("height", height) .call(d3.behavior.drag() -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 39 additions and 41 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 @@ -2,51 +2,57 @@ <meta charset="utf-8"> <style> body { font-family: sans-serif; } #precision-wrapper { position: absolute; top: 5px; left: 5px; } svg { cursor: move; } rect { fill: none; } .graticule { fill: none; stroke: #666; stroke-width: .5px; } .graticule:nth-child(2n) { stroke-dasharray: 2,2; } path.resample { stroke: #f00; stroke-width: 2.5px; fill: none; } </style> <p id="precision-wrapper">Precision: <span id="precision"></span> <script src="https://raw.github.com/jasondavies/d3/projection/d3.v2.min.js"></script> <script> var width = 960, height = 500, x = d3.scale.linear().domain([0, width]).range([200, 1]); var projection = d3.geo.mercator() .translate([width / 2 - .5, height / 2 - .5]) .scale(400) .precision(x.range()[0]), path = d3.geo.path().projection(projection), graticule = d3.geo.graticule(), format = d3.format(",.2f"), precision = d3.select("#precision"); var svg = d3.select("body").append("svg") .datum({x: 0, y: 0}) @@ -59,35 +65,27 @@ d.y = d3.event.y; projection.rotate([d.x, -d.y, 0]); svg.selectAll("path").attr("d", path); })) .on("mousemove", function() { var px = x(d3.mouse(this)[0]); projection.precision(px); precision.text(format(px) + "px"); svg.selectAll("path").attr("d", path); }); svg.append("rect") .attr("width", width) .attr("height", height); svg.append("path") .attr("class", "resample") .datum({type: "LineString", coordinates: [[-180, 0], [-90, 0], [0, 0], [90, 0], [180, 0]]}) .attr("d", path); svg.selectAll(".graticule") .data(graticule.lines) .enter().append("path") .attr("class", "graticule") .attr("d", path); </script> -
jasondavies revised this gist
Sep 26, 2012 . 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 @@ -44,7 +44,7 @@ var width = 960, height = 500; var projection = d3.geo.albers().translate([width / 2 - .5, height / 1.75 - .5]).scale(120), path = d3.geo.path().projection(projection), graticule = d3.geo.graticule(); -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 3 additions and 19 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 @@ -45,7 +45,8 @@ height = 500; var projection = d3.geo.equirectangular().translate([width / 2 - .5, height / 2 - .5]).scale(150), path = d3.geo.path().projection(projection), graticule = d3.geo.graticule(); var svg = d3.select("body").append("svg") .datum({x: 0, y: 0}) @@ -66,7 +67,7 @@ .attr("height", height); svg.selectAll(".graticule") .data(graticule.lines) .enter().append("path") .attr("class", "graticule") .attr("d", path); @@ -89,21 +90,4 @@ .attr("d", path); }); </script> -
jasondavies revised this gist
Sep 26, 2012 . 2 changed files with 6 additions 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,2 @@ D3 2.11’s `d3.geo.path` will automatically cut features for any aspect. Try dragging to rotate the world and see a new aspect. 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 @@ -32,6 +32,10 @@ stroke: #a5967e; } svg { cursor: move; } </style> <body> <script src="https://raw.github.com/jasondavies/d3/projection/d3.v2.min.js"></script> -
jasondavies revised this gist
Sep 26, 2012 . 1 changed file with 18 additions 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 @@ -67,6 +67,24 @@ .attr("class", "graticule") .attr("d", path); d3.json("/d/3682676/readme-boundaries.json", function(collection) { svg.insert("g", ".graticule") .attr("class", "boundary") .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", path); }); d3.json("/d/3682676/readme-land.json", function(collection) { svg.insert("g", ".graticule,.boundary") .attr("class", "land") .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", path); }); function graticule() { var extent = [[-180, -90], [180, 90]], step = [22.5, 22.5], -
jasondavies revised this gist
Sep 25, 2012 . 1 changed file with 0 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 @@ -1,3 +0,0 @@ -
jasondavies revised this gist
Sep 25, 2012 . 1 changed file with 18 additions and 21 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 @@ -40,11 +40,9 @@ var width = 960, height = 500; var projection = d3.geo.equirectangular().translate([width / 2 - .5, height / 2 - .5]).scale(150), path = d3.geo.path().projection(projection); var svg = d3.select("body").append("svg") .datum({x: 0, y: 0}) .attr("width", width) @@ -64,27 +62,26 @@ .attr("height", height); svg.selectAll(".graticule") .data(graticule) .enter().append("path") .attr("class", "graticule") .attr("d", path); function graticule() { var extent = [[-180, -90], [180, 90]], step = [22.5, 22.5], precision = [2, 2]; var xSteps = d3.range(extent[0][0], extent[1][0] - precision[0] / 2, precision[0]).concat(extent[1][0]), ySteps = d3.range(extent[0][1], extent[1][1] - precision[1] / 2, precision[1]).concat(extent[1][1]), xLines = d3.range(Math.ceil(extent[0][0] / step[0]) * step[0], extent[1][0], step[0]).map(function(x) { return ySteps.map(function(y) { return [x, y]; }); }), yLines = d3.range(Math.ceil(extent[0][1] / step[1]) * step[1], extent[1][1], step[1]).map(function(y) { return xSteps.map(function(x) { return [x, y]; }); }); return xLines.concat(yLines).map(function(coordinates) { return { type: "LineString", coordinates: coordinates }; }); } </script> -
jasondavies revised this gist
Sep 25, 2012 . 1 changed file with 3 additions and 8 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 @@ -58,22 +58,17 @@ svg.selectAll("path").attr("d", path); })); svg.append("rect") .attr("class", "background") .attr("width", width) .attr("height", height); svg.selectAll(".graticule") .data(graticule.lines) .enter().append("path") .attr("class", "graticule") .attr("d", path); d3.json("/d/3682676/readme-boundaries.json", function(collection) { svg.insert("g", ".graticule") .attr("class", "boundary") -
jasondavies revised this gist
Sep 25, 2012 . 1 changed file with 4 additions and 5 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 @@ -34,15 +34,14 @@ </style> <body> <script src="https://raw.github.com/jasondavies/d3/projection/d3.v2.min.js"></script> <script> var width = 960, height = 500; var projection = d3.geo.equirectangular().translate([width / 2 - .5, height / 2 - .5]), path = d3.geo.path().projection(projection); var graticule = d3.geo.graticule(); @@ -55,7 +54,7 @@ .on("drag", function(d) { d.x = d3.event.x; d.y = d3.event.y; projection.rotate([d.x, -d.y, 0]); svg.selectAll("path").attr("d", path); })); -
jasondavies revised this gist
Sep 24, 2012 . 1 changed file with 1 addition 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 @@ -46,9 +46,7 @@ var graticule = d3.geo.graticule(); var svg = d3.select("body").append("svg") .datum({x: 0, y: 0}) .attr("width", width) .attr("height", height) -
jasondavies revised this gist
Sep 24, 2012 . 1 changed file with 2 additions and 5 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 @@ -41,11 +41,8 @@ var width = 960, height = 500; var projection = d3.geo.orthographic().translate([width / 2 - .5, height / 2 - .5]), path = d3.geo.projection.path().projection(projection); var graticule = d3.geo.graticule(); -
jasondavies revised this gist
Sep 24, 2012 . 2 changed files with 28 additions and 26 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,3 @@ Testing the new projection API. The [Orthographic projection](http://en.wikipedia.org/wiki/Orthographic_projection_%28cartography%29) is available as `d3.geo.orthographic` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/clip/geo/projection). 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 @@ -36,49 +36,57 @@ <body> <script src="http://d3js.org/d3.v2.min.js"></script> <script src="https://raw.github.com/d3/d3-plugins/clip/geo/projection/projection.js"></script> <script> var width = 960, height = 500; var projection = d3.geo.orthographic() .rotate([0, 0, 45]) .translate([width / 2 - .5, height / 2 - .5]), path = d3.geo.projection.path() .projection(projection); var graticule = d3.geo.graticule(); var svg = d3.select("body").selectAll("svg") .data([0, 180]) .enter().append("svg") .datum({x: 0, y: 0}) .attr("width", width) .attr("height", height) .call(d3.behavior.drag() .origin(Object) .on("drag", function(d) { d.x = d3.event.x; d.y = d3.event.y; projection.rotate([d.x, -d.y]); svg.selectAll("path").attr("d", path); })); svg.append("circle") .attr("class", "background") .attr("transform", "translate(" + projection.translate() + ")") .attr("r", projection.scale()); svg.selectAll(".graticule") .data(graticule.lines) .enter().append("path") .attr("class", "graticule") .attr("d", path); svg.append("circle") .attr("class", "foreground") .attr("transform", "translate(" + projection.translate() + ")") .attr("r", projection.scale()); d3.json("/d/3682676/readme-boundaries.json", function(collection) { svg.insert("g", ".graticule") .attr("class", "boundary") .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", path); }); d3.json("/d/3682676/readme-land.json", function(collection) { @@ -87,15 +95,7 @@ .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", path); }); </script> -
jasondavies revised this gist
Sep 16, 2012 . 1 changed file with 13 additions and 6 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 @@ -48,10 +48,11 @@ var clip = d3.geo.clip(); var graticule = d3.geo.graticule(); var svg = d3.select("body").selectAll("svg") .data([0, 180]) .enter().append("svg") .attr("width", width) .attr("height", height); @@ -75,7 +76,7 @@ svg.insert("g", ".graticule") .attr("class", "boundary") .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", clipPath); }); @@ -84,11 +85,17 @@ svg.insert("g", ".graticule,.boundary") .attr("class", "land") .selectAll("path") .data(collection.geometries) .enter().append("path") .attr("d", clipPath); }); function rotate(f) { return function(rotate) { return rotate(f()); }; } function clipPath(d) { return path(clip(d)); } </script> -
jasondavies revised this gist
Sep 14, 2012 . 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 @@ -48,7 +48,8 @@ var clip = d3.geo.clip(); var graticule = d3.geo.graticule() .extent([[-90, -90], [90, 90]]); var svg = d3.select("body").append("svg") .attr("width", width) -
jasondavies revised this gist
Sep 14, 2012 . 1 changed file with 11 additions and 6 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 @@ -36,6 +36,7 @@ <body> <script src="http://d3js.org/d3.v2.min.js"></script> <script src="https://raw.github.com/d3/d3-plugins/clip/geo/projection/projection.js"></script> <script src="https://raw.github.com/d3/d3-plugins/clip/geo/clip/clip.js"></script> <script> var width = 960, @@ -45,6 +46,8 @@ .projection(d3.geo.orthographic() .translate([width / 2 - .5, height / 2 - .5])); var clip = d3.geo.clip(); var graticule = d3.geo.graticule(); var svg = d3.select("body").append("svg") @@ -54,26 +57,26 @@ svg.append("path") .datum(graticule.outline) .attr("class", "background") .attr("d", clipPath); svg.selectAll(".graticule") .data(graticule.lines) .enter().append("path") .attr("class", "graticule") .attr("d", clipPath); svg.append("path") .datum(graticule.outline) .attr("class", "foreground") .attr("d", clipPath); d3.json("/d/3682676/readme-boundaries.json", function(collection) { svg.insert("g", ".graticule") .attr("class", "boundary") .selectAll("path") .data(collection.features) .enter().append("path") .attr("d", clipPath); }); d3.json("/d/3682676/readme-land.json", function(collection) { @@ -82,7 +85,9 @@ .selectAll("path") .data(collection.features) .enter().append("path") .attr("d", clipPath); }); function clipPath(d) { return path(clip(d)); } </script> -
jasondavies revised this gist
Sep 14, 2012 . 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 @@ -1 +1 @@ The [Orthographic projection](http://en.wikipedia.org/wiki/Orthographic_projection_%28cartography%29) is available as `d3.geo.orthographic` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/clip/geo/projection). -
jasondavies revised this gist
Sep 14, 2012 . 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 @@ -1 +1 @@ The [Orthographic projection](http://en.wikipedia.org/wiki/Orthographic_projection_(cartography%29) is available as `d3.geo.orthographic` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/clip/geo/projection). -
jasondavies revised this gist
Sep 14, 2012 . 2 changed files with 3 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 @@ -1 +1 @@ The [Orthographic projection](http://en.wikipedia.org/wiki/Orthographic_projection_(cartography)) is available as `d3.geo.orthographic` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/clip/geo/projection). 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 @@ -35,14 +35,14 @@ </style> <body> <script src="http://d3js.org/d3.v2.min.js"></script> <script src="https://raw.github.com/d3/d3-plugins/clip/geo/projection/projection.js"></script> <script> var width = 960, height = 500; var path = d3.geo.path() .projection(d3.geo.orthographic() .translate([width / 2 - .5, height / 2 - .5])); var graticule = d3.geo.graticule(); -
mbostock revised this gist
Sep 13, 2012 . 2 changed files with 2 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 @@ -1 +1 @@ The [Aitoff projection](http://en.wikipedia.org/wiki/Aitoff_projection) is available as `d3.geo.aitoff` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/master/geo/projection). 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 @@ -42,7 +42,7 @@ height = 500; var path = d3.geo.path() .projection(d3.geo.aitoff() .translate([width / 2 - .5, height / 2 - .5])); var graticule = d3.geo.graticule(); -
mbostock revised this gist
Sep 13, 2012 . 2 changed files with 2 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 @@ -1 +1 @@ The [Cylindrical equal-area projection](http://en.wikipedia.org/wiki/Cylindrical_equal-area_projection) is available as `d3.geo.cylindricalEqualArea` in the [geo.projection D3 plugin](https://github.com/d3/d3-plugins/tree/master/geo/projection). 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 @@ -42,7 +42,7 @@ height = 500; var path = d3.geo.path() .projection(d3.geo.cylindricalEqualArea() .translate([width / 2 - .5, height / 2 - .5])); var graticule = d3.geo.graticule();
NewerOlder