chart = {
const svg = d3.select(DOM.svg(width, 100));
const x = d3.scaleLinear().range([0, width]);
const y = d3.scaleLinear().range([20, 80]);
svg.append("path")
.datum(d3.range(0, 1, 0.001).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 * 0.001))
.y(y));
return svg.node();
}