chart = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
const gradient = DOM.uid();
svg
.append("linearGradient")
.attr("id", gradient.id)
.attr("gradientUnits", "userSpaceOnUse")
.attr("x1", 0)
.attr("y1", height - margin.bottom)
.attr("x2", 0)
.attr("y2", margin.top)
.selectAll("stop")
.data(d3.ticks(0, 1, 10))
.join("stop")
.attr("offset", (d) => d)
.attr("stop-color", color);
svg
.append("path")
.datum(blossoms.filter(area.defined()))
.attr("fill", "#eee")
.attr("opacity", 0.5)
.attr("d", area);
svg
.append("path")
.datum(blossoms)
.attr("fill", gradient)
.attr("opacity", 0.8)
.attr("d", area);
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
return svg.node();
}