Public
Edited
Feb 14, 2024
1 fork
Insert cell
Insert cell
choice = [inward, outward]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
flatData1 = groupings[0].slice().sort((a, b) => d3.descending(a.date, b.date))
Insert cell
Insert cell
//url = "https://docs.google.com/spreadsheets/d/1C9IlvOS00Lo2-Z7fnFKAKnJahWg6L-bgoSg3a4iqMYA/edit#gid=808024651"
Insert cell
Insert cell
Insert cell
Insert cell
//viewof types = Inputs.select(new Set(dataset.map(d => d.forum).sort((a, b) => d3.ascending(a,b))), {label: "Select a body, if required", width: 800})
Insert cell
//viewof types = Inputs.select(new Set(groupings[0].map(d => d.forum)), {label: "Select an interparliamentary body", width: 800})
Insert cell
//viewof groupByPriority = Inputs.radio(["Past events", "Future events"], {label: "Select one", value: "Past events", width: 800})
Insert cell
//groupings = groupByPriority === "Past events" ? [pastDates] : [futureDates];
Insert cell
travelGrouping = groupings[0].filter(d => d.direction === `${directionSort}`).sort((a, b) => d3.descending(a.date, b.date))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
filteredBodies = dataset.filter(d => d.forum === `${groupByPriority}`)
Insert cell
Insert cell
Insert cell
CSVurl = "https://s3-eu-west-1.amazonaws.com/oireachtas-data-repo-prelive/ie/oireachtas/interparliamentary/2020/2020-01-09_interparliamentary-engagements-test_en.csv"
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