Public
Edited
Oct 28, 2022
Insert cell
Insert cell
notes = [{name:"Alice"}, {name:"Bob"}]
Insert cell
nodes = notes.map((d) => Object.create({ ...d, tmp: true }))
Insert cell
new Promise((resolve) =>
d3.forceSimulation(nodes).on("end", () => resolve(nodes.map((d) => d.x)))
)
Insert cell
nodes.map((d) => d.name)
Insert cell
nodes.map((d) => d.tmp)
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