Public
Edited
Aug 22, 2023
Insert cell
Insert cell
data = `name,parent
Eve,
Cain,Eve
Seth,Eve
Enos,Seth
Noam,Seth
Abel,Eve
Awan,Eve
Enoch,Awan
Azura,Ev`
Insert cell
data_1= await d3.csvParse(data)
Insert cell
hierarchy = d3
.stratify()
.id(d => d.name)
.parentId(d => d.parent)(data_1)
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