chart = {
const svg = d3
.create("svg")
.attr("viewBox", [-width / 2, -height / 2, width, height])
.style("width", "100%")
.style("height", "auto")
.style("font", "14px sans-serif");
const g = svg
.append("g")
.selectAll("g")
.data(longData)
.join("g");
g.append("path")
.attr("d", arc)
.attr("stroke", "white")
.attr("fill", d =>
color(["Maximum", "Partial"].includes(d.status) ? d.category : null)
)
.attr("fill-opacity", d => (d.status === "Partial" ? 0.4 : 1));
g.append("title").text(d => `${d.state}: ${d.category}, ${d.status}`);
g.filter(d => d.status === "Banned")
.append("text")
.text("⃠")
.attr("font-weight", "bold")
.attr("font-size", "20px")
.attr("text-anchor", "middle")
.attr("dy", "0.27em")
.attr("fill", d => color(d.category))
.attr("x", bannedX)
.attr("y", bannedY)
.style("pointer-events", "none");
svg.append("g").call(dividers);
svg.append("g").call(regionLabels);
svg.append("g").call(stateLabels);
svg.append("g").call(legend);
return svg.node();
}