Public
Edited
Jun 9, 2024
Importers
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
refreshRate = 5
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
epikrateia = electionData.map(d => {return {ekloges_id: d.ekloges_id, ...d.epikrateia}})
Insert cell
Insert cell
Insert cell
Insert cell
electionData = [[{ekloges_id: ekloges[0].id, ...latestElection}], pastElections].flat()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
measureTextWidth = (text) => document.createElement("canvas").getContext("2d").measureText(text).width;
Insert cell
import {Legend, Swatches} from "@d3/color-legend"
Insert cell
colorsSpectrum = ['#f2f0f7','#cbc9e2','#9e9ac8','#6a51a3'];
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