{
const height = 20;
const width = 100;
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
svg.append("path")
.attr("d", "M 0 0 L 20 20 L40 0 L60 20 L80 0 L100 20")
.attr("stroke", "black")
.attr("fill", "none");
const line = d3.line();
svg.append("path")
.attr("d", line([[0,0], [20,20], [40,0], [60,20], [80, 0], [100,20]]))
.attr("stroke", "red")
.attr("stroke-width", 0.25)
.attr("fill", "none");
return svg.node();
}