svg = {
const svg = d3.select(DOM.svg(400, 400))
const defs = svg.append("defs")
const hatch_pattern_1 = defs
.append("pattern")
.attr("id", "hatch-1")
.attr("width", hatch_size)
.attr("height", hatch_size)
.attr("patternTransform", `rotate(${rotation})`)
.attr("patternUnits","userSpaceOnUse")
hatch_pattern_1.append("rect")
.attr("width", hatch_size/2)
.attr("height", hatch_size)
.style("fill", "#ed0c87")
const hatch_pattern_2 = defs
.append("pattern")
.attr("id", "hatch-2")
.attr("width", hatch_size)
.attr("height", hatch_size)
.attr("patternTransform", `rotate(${rotation})`)
.attr("patternUnits","userSpaceOnUse")
hatch_pattern_2.append("rect")
.attr("x", hatch_size/2)
.attr("width", hatch_size/2)
.attr("height", hatch_size)
.style("fill", "rgb(255,0,0)")
svg.append("circle")
.attr("cx", 150)
.attr("cy", 250)
.attr("r", 100)
.style("fill", "url(#hatch-1)")
svg.append("circle")
.attr("cx", 250)
.attr("cy", 150)
.attr("r", 100)
.style("fill", "url(#hatch-2)")
return svg.node();
}