Public
Edited
Jan 25, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
topology = {
const response = await fetch(
"https://raw.githubusercontent.com/smartnews-smri/japan-topography/main/data/municipality/topojson/s0010/N03-21_01_210101.json"
);
return response.json();
}
Insert cell
land = topojson.feature(topology, topology.objects["N03-21_01_210101"])
Insert cell
allCoords = land.features
.map((d) => d.geometry)
.flatMap((d) => d.coordinates.flat())
Insert cell
lonExtent = d3.extent(allCoords.map((d) => d[0]))
Insert cell
latExtent = d3.extent(allCoords.map((d) => d[1]))
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