Published
Edited
Apr 26, 2021
1 star
Insert cell
Insert cell
Insert cell
diagonal = d3.linkHorizontal().x(d => d.y).y(d => d.x)
Insert cell
tree = d3.tree().nodeSize([dx, dy])
Insert cell
data_line = FileAttachment("qom.json").json()
Insert cell
stratify = d3.stratify()
.id(d => d["name"])
.parentId(d => d["parent"])
Insert cell
data = stratify(data_line)
Insert cell
dx = 10
Insert cell
dy = width / 6
Insert cell
margin = ({top: 10, right: 120, bottom: 10, left: 40})
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