Public
Edited
Apr 22, 2023
Insert cell
Insert cell
Plot.plot({
style: { fontSize: 20 },
axis: null,
margin: 20,
marginRight: 120,
marks: [
Plot.tree(data, {
delimiter: ""
})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
randomStrings = (n, v, length) =>
d3.range(n).map((i) =>
d3
.range(length)
.map((j) => alphabet[d3.randomInt(v)()])
.join("")
)
Insert cell
data = randomStrings(n, v, length)
Insert cell
alphabet = "abcdefghijklmnopqrstuvwxyz"
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