Public
Edited
Jul 29, 2024
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
percent_change_data = read(
"https://docs.google.com/spreadsheets/d/15epk80XjH5l2tHuBJ9GY-23nSsZ4qsyUEzOnKXb13v8/edit?gid=1769328799#gid=1769328799",
"percent"
)
Insert cell
percent_change = percent_change_data.map((d) => ({
party_long: d.party_long,
party: d.party,
recent: +d.recent,
former: +d.former,
change: +d.change
}))
Insert cell
party_color = new Map([
["CON", "#0575c9"],
["LAB", "#e91d0e"],
["LD", "#efac18"],
["SNP", "#f8ed2e"],
["GRN", "#5fb25f"],
["DUP", "#b51c4b"],
["Sinn Féin", "#159b78"],
["Plaid Cymru", "#13e594"],
["SDLP", "#224922"],
["APNI", "#d6b429"],
["REF", "#12B6CF"],
["Sonstige", "#99AFC2"]
])
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