Public
Edited
Jul 12, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deputes_pca = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/assemblee-nationale/main/out/deputes_pca.csv"
)
).objects()
Insert cell
groupes_pca = d3.rollups(
deputes_pca,
(D) => ({
a1: d3.mean(D, (d) => d["axe 1"]),
a2: d3.mean(D, (d) => d["axe 2"])
}),
(d) => d.libelleAbrev
)
Insert cell
couleurs = d3.rollup(
deputes_pca,
(D) => D[0].couleurAssociee,
(d) => d.libelleAbrev
)
Insert cell
import { plot_options } from "@taniki/an-common"
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