Public
Edited
Jun 1, 2023
Insert cell
Insert cell
Tree(
hier,
{
label: d => d.name,
width: 2000,
height: 2000,
margin: 200,
tree: d3.cluster
}
)
Insert cell
hier.each(d => {d.name = data.topics[d.id]})
Insert cell
hier = d3.stratify()
.id(d => d["child"])
.parentId(d => d["parent"])(data.hier)
Insert cell
import {Tree} from "@d3/radial-tree"
Insert cell
data = null
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