Public
Edited
May 5, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// dataByTimeline = d3.nest().key(d=>d.timeline).entries(data);
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell


//csv =d3.csvParse(await FileAttachment("historical figures - hf-40-12.csv").text())

Insert cell
promiseValue = {
let val = Promise.all([d3.csv("https://raw.githubusercontent.com/eyssette/frise-philo/main/data/philosophers-1.csv"),
d3.csv("https://raw.githubusercontent.com/eyssette/frise-philo/main/data/philosophers-2.csv"),
d3.csv("https://raw.githubusercontent.com/eyssette/frise-philo/main/data/philosophers-3.csv"),])
.then(files => (d3.merge(files)))
return () => val
}
Insert cell
csv = promiseValue()
Insert cell
csv2 = csv.filter( item => {return item["curriculum"] == '1'})
Insert cell
Insert cell
Insert cell
// timelines = dataByTimeline.map(d=>d.key)
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