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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more