Demonstrates how to programmatically set the x-domain used by D3’s zoom behaviour, in answer to a StackOverflow question.
The Goode Homolosine projection is available as d3.geo.homolosine in the geo.projection D3 plugin.
Interrupted projections using the geo.projection D3 plugin.
The Sinusoidal Projection is available as d3.geo.sinusoidal in the geo.projection D3 plugin. This demonstrates how it can be used to generate an interrupted projection.
Oblique Hammer projection, created using a combination of d3.geo.hammer and d3.geo.clip from the geo.projection D3 plugin.
Coordinates are rotated 45° counterclockwise.
Combines the Atlantis aspect with Mike’s projection transitions, showing off various projections from the geo.projection D3 plugin.
The Azimuthal Equidistant projection is available as d3.geo.azimuthalEquidistant in the geo.projection D3 plugin.
Interrupted rotating Mollweide hemispheres.
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.
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <body> | |
| <script src="http://d3js.org/d3.v2.js?2.9.6"></script> | |
| <script> | |
| var canvas = d3.select("body").append("canvas") | |
| .attr("width", 960) | |
| .attr("height", 500); |