{const width = 600;
const height = 200;
const margin = { top: 20, bottom: 20, left: 50, right: 50 };
const svg = d3
.create("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.style("border", "1px dotted #000");
const g = svg
.append("g")
.attr("transform", `translate(${margin.left}+10, ${margin.top}+10)`);
g.append("g")
.selectAll("d")
.data([1])
.join("symbol")
.append("path")
.attr("d",d3.symbolsFill[0])
.attr("transform", "translate(25,25)")
.style("fill","yellow")
.style("stroke","red")
.size(500)
return svg.node();
}