Published
Edited
Apr 14, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
comuni_data = comuni.features.map(d => d.properties)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
region = FileAttachment("comuni_toscana.topo.json").json()
Insert cell
comuni = topojson.feature(region, region.objects.comuni)
Insert cell
Insert cell
projection = d3.geoAzimuthalEqualArea() // Lambert equal-area
.rotate([-9, -53]) // centered in Germany (FIXME?)
.fitExtent([[0, 0], [w, h]], comuni)
Insert cell
path = d3.geoPath().projection(projection)
Insert cell
Insert cell
d3 = require("d3@5")
Insert cell
topojson = require("topojson-client@3")
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