Public
Edited
Aug 3, 2024
Insert cell
Insert cell
Insert cell
delegations = d3.rollups(
athletes.objects(),
(D) => D.length,
(d) => d.country_name_long
)
Insert cell
athletes = await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/paris2024-data/main/datasets/athletes.csv"
)
Insert cell
gdp_capita_ppp_kd = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/paris2024-data/main/extras/gdp_countries.quantiles.csv"
)
).objects()
Insert cell
quantiles_countries = d3.rollups(
gdp_capita_ppp_kd,
(D) => d3.sort(D, (d) => d.gdp_capita).map((d) => d.country),
(d) => d.gdp_capita_quantile
)
Insert cell
quantiles_countries_details = d3.rollups(
gdp_capita_ppp_kd,
(D) => d3.sort(D, (d) => d.gdp_capita).reverse(),
(d) => d.gdp_capita_quantile
)
Insert cell
groups_label = ({
"-1": "PIB inconnu",
0: "très pauvre",
1: "pauvre",
2: "plutôt pauvre",
3: "plutôt riche",
4: "riche",
5: "très riche"
})
Insert cell
matching = d3.rollup(
(
await aq.loadCSV(
"https://docs.google.com/spreadsheets/d/e/2PACX-1vRJ88vRGuYawuZtXvbVXMwoD1kMVKU1ChriRDopO_VjADOpbbd-3QmRM0ABxTRB4BrGrtiAv0X_Ug2R/pub?gid=0&single=true&output=csv"
)
)
.select(["name", "ioc_name"])
.objects(),
(D) => D[0]?.name,
(d) => d.ioc_name
)
Insert cell
plot_options = ({
caption:
"sources : paris2024 et banque mondiale · traitement des données et infographie : tam kien duong"
})
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