chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
const path = svg.append("g")
.selectAll("path")
.data(series)
.join("path")
.attr("data-genre", d => d.key)
.attr("fill", ({key}) => color(key))
.attr("d", area)
svg.append("g")
.call(xAxis);
svg.call(hover, path);
return svg.node();
}