Published
Edited
Sep 14, 2018
1 fork
3 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
geoTwoWorld = function() {

function faceProjection(face) {
var r = d3.geoCentroid({type:"Polygon", coordinates:[face]}).map(d => -d);
return d3.geoProjection(raw).rotate([0 * r[0],r[1]]);
}

return d3.geoPolyhedralVoronoi()
.parents(parents)
.angle(90)
.polygons(polygons)
.faceProjection(faceProjection)
.fitExtent([[0,0],[width, width * 0.5]], {type: "Sphere"})
.rotate([lambda,phi,psi]);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more