Public
Edited
Oct 26, 2023
Fork of Orthographic
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
projection = d3.geoCylindricalEqualArea()
.parallel(parallel)
.translate([width / 2, height / 2])
.fitExtent([[0.5, 0.5], [width - 0.5, height - 0.5]], {type: "Sphere"})
.precision(0.1)
Insert cell
Insert cell
height = Math.round(width / (Math.PI * Math.cos(parallel * Math.PI / 180) ** 2))
Insert cell
Insert cell
graticule = d3.geoGraticule10()
Insert cell
land = topojson.feature(world, world.objects.land)
Insert cell
world = fetch("https://cdn.jsdelivr.net/npm/world-atlas@2/land-50m.json").then(response => response.json())
Insert cell
topojson = require("topojson-client@3")
Insert cell
d3 = require("d3-geo@3", "d3-geo-projection@4")
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