Public
Edited
Feb 7
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
documentation
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pays = FileAttachment("world-exo.json").json()
Insert cell
pays.features.map((ft) => ft.properties)
Insert cell
bm = FileAttachment("worldbank.csv").csv({ typed: true })
Insert cell
Insert cell
Insert cell
Insert cell
t = [1, 4, 9]
Insert cell
t.map(function(d) { return d * 2})
Insert cell
t2 = [
{ foo: 2, bar: 3 },
{ foo: 12, bar: 10},
]
Insert cell
t2.map(function(d) { return d.bar })
Insert cell
t2.map((d) => d.bar)
Insert cell
Inputs.table(pays.features.map((ft) => ft.properties))
Insert cell
Insert cell
En 2020, le pays le plus riche est **${paysleplusriche.name}** et le pays le plus peuplé est **${payslepluspeuple.name}**.
Insert cell
paysleplusriche = {
let richest = bm[0];
for (let i = 0; i < bm.length; i++) {
let p = bm[i];
if (p.gdp > richest.gdp) richest = p;
}
return richest
}
Insert cell
payslepluspeuple = {
let mostpop = bm[0];
for (let i = 0; i < bm.length; i++) {
let p = bm[i];
if (p.pop > mostpop.pop) mostpop = p;
}
return mostpop
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viz = require('geoviz')
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
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
Insert cell
Insert cell
Insert cell
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