Public
Edited
Mar 17, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
event
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Plot.plot({
axis: null,
margin: 20,
marginRight: 120,
width: 1152,
height: 400,
marks: [
Plot.tree(withPath.slice(0, 6), {
path: "path",
delimiter: "###",
label: null
})
]
})
Insert cell
ForceGraph(dataWithNodes, {
nodeId: (d) => d.key, // node identifier, to match links
nodeGroup: (d) => d.group, // group identifier, for color
nodeTitle: (d) => d.label, // hover text
nodeStrength: -2,
width,
height: 820,
invalidation, // stop when the cell is re-run
extentForce: "forceBoundary"
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {Pack} from "@d3/pack"
Insert cell
import {ForceGraph} from "@d3/force-directed-graph"
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