chart = {
const svg = d3
.create("svg")
.attr("width", width)
.attr("height", height)
.style("background", "aliceblue");
const path = d3.path();
path.moveTo(10, 10);
path.quadraticCurveTo(30, 10, 30, 30);
path.lineTo(30, 500);
const d = path.toString();
console.log(d);
svg
.append("path")
.attr("stroke", "red")
.attr("stroke-width", "5")
.attr("fill", "none")
.attr("d", d);
return svg.node();
}