chart = {
const svg = d3
.create("svg")
.attr("viewBox", [-width / 2.75, -height / 2, width, height])
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round");
svg
.append("path")
.style("fill", "url(#areaGradient)")
.attr("d", line.radius((d) => y(d.date))(filteredBlossoms));
svg.append("g").call(stamen);
let areaGradient = svg
.append("defs")
.append("radialGradient")
.attr("id", "areaGradient")
.attr("x1", "0%")
.attr("y1", "0%")
.attr("x2", "100%")
.attr("y2", "100%");
areaGradient
.append("stop")
.attr("offset", "0%")
.attr("stop-color", colorPicker(diff))
.attr("stop-opacity", 1);
areaGradient
.append("stop")
.attr("offset", "90%")
.attr("stop-color", color[1])
.attr("stop-opacity", 0.3);
return svg.node();
}