chart = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
const chart = svg.append("g");
chart
.append("g")
.selectAll("mycircle")
.data(csv)
.enter()
.append("circle")
.attr("cx", (d) => x(new Date(d.Year, 0)))
.attr("cy", (d) => y(d[group.label]))
.attr("r", 4)
.attr("fill", "orange");
return svg.node();
}