chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.call(xAxis);
svg.append("g")
.call(yAxis);
svg.append("g")
.selectAll("circle")
.data(seraphon)
.join("circle")
.filter(d => d.char)
.attr("cx", d => x(d.oppTn))
.attr("cy", d => y(eDamage(d)))
.attr("r", 5)
.attr("fill", d => catFill(d.char));
svg.append("g")
.attr("fill", "none")
.selectAll("path")
.data(snest)
.join("path")
.attr("stroke", "black")
.attr("d", ([,d]) => line(d))
return svg.node();
}