chart = {
const svg = d3
.create("svg")
.attr("width", width)
.attr("height", height)
.style("border", "1px solid lightgrey");
const links = svg
.append("g")
.attr("stroke", "lightgrey")
.attr("stroke-width", 1);
const nodes = svg.append("g").attr("fill", "steelblue");
setupDrag(svg, nodes, simulation);
function update() {
}
return svg.node();
}