Public
Edited
Jun 5
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
workbook1
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
workbook
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
workbook = d3.dsv(";", await FileAttachment("nuclear_plant@2.csv").url(), d3.autoType)
Insert cell
Insert cell
europe = await FileAttachment("europe.topojson").json()
Insert cell
// Définir la projection
projection1 = d3.geoEqualEarth()
Insert cell
// Définir le "outline" (globe)
outline = ({ type: "Sphere" })
Insert cell
height = {
projection1.fitSize([width, 600], land); // ajuste la taille et le centrage sur l’Europe
return 600;
}
Insert cell
// Générateur de chemin
path = d3.geoPath(projection1)
Insert cell
// Graticule
graticule = d3.geoGraticule10()
Insert cell
land = topojson.feature(europe, europe.objects.europe)

Insert cell
borders = topojson.mesh(europe, europe.objects.europe, (a, b) => a !== b)
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