{
const width = 400;
const height = 200;
const svg = d3.create("svg")
.attr("width", width)
.attr("height", height)
.style("border", "1px solid #ccc");
const numbers = Array.from({length: 15}, () => ({
value: Math.floor(Math.random() * 100),
x: Math.random() * width,
y: Math.random() * height
}));
svg.selectAll("text")
.data(numbers)
.join("text")
.attr("x", d => d.x)
.attr("y", d => d.y)
.attr("fill", "black")
.attr("font-size", 14)
.attr("text-anchor", "middle")
.attr("alignment-baseline", "middle")
.text(d => d.value);
return svg.node();
}