chart = {
const svg = d3.select(DOM.svg(width, 100));
const x = d3.scaleLinear().domain([0, 500]).range([0, width]);
const y = d3.scaleLinear().range([20, 80]);
svg
.append("path")
.datum(d3.range(500).map(() => Math.random()))
.attr("fill", "none")
.attr("stroke", "steelblue")
.attr("stroke-width", 1.5)
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr(
"d",
d3
.line()
.x((d, i) => x(i))
.y(y)
);
return svg.node();
}