Public
Edited
May 9, 2023
Insert cell
Insert cell
Insert cell
Insert cell
path = d3.geoPath(projection)
Insert cell
tiles = tile()
Insert cell
url = (x, y, z) =>
`https://stamen-tiles-${
"abc"[Math.abs(x + y) % 3]
}.a.ssl.fastly.net/terrain/${z}/${x}/${y}${
devicePixelRatio > 1 ? "@2x" : ""
}.png`
Insert cell
height = 500
Insert cell
tile = d3
.tile()
.size([width, height])
.scale(projection.scale() * 2 * Math.PI)
.translate(projection([0, 0]))
Insert cell
d3 = require("d3-geo@2", "d3-tile@1")
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