Public
Edited
Jul 19, 2024
Paused
6 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
circonciscriptions = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/legislatives-2024/main/tmp/lg2024_circ_ecarts.csv"
)
).objects()
Insert cell
candidats = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/legislatives-2024/main/tmp/lg2024_cand_ecarts.csv"
)
).objects()
Insert cell
select = ["UG", "ENS", "LR", "RN"]
Insert cell
couleurs_mdpt = ({
UG: "#fc392b",
ENS: "#f0b500",
LR: "#4292c6",
RN: "#662506"
})
Insert cell
t1_resultats = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/legislatives-2024/main/lg2024/t1_resultats.csv"
)
).objects()
Insert cell
t2_resultats = (
await aq.loadCSV(
"https://raw.githubusercontent.com/taniki/legislatives-2024/main/lg2024/t2_resultats.csv"
)
).objects()
Insert cell
t1_rn_greatest = [
...new Set(
t1_resultats
.filter((c1) =>
["RN", "UXD"].includes(
d3.greatest(
t1_resultats.filter((c2) => c1.CodCirc2 == c2.CodCirc2),
(d) => d.NbVoix
).CodNuaCand
)
)
.map((d) => d.CodCirc2)
)
]
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