<svg width="500" height="300"></svg>
const svg = d3.select("svg");
const data = [25, 30, 45, 60, 20, 65, 75];
svg
.selectAll("text")
.data(data)
.enter()
.append("text")
.text((d) => d)
.attr("x", (d, i) => i * 70)
.attr("y", 30)
.attr("font-size", "20px")
.attr("text-anchor", "middle");
This Pen doesn't use any external CSS resources.