{
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
yield svg.node();
svg.append("g").call(legend);
svg.append("g")
.selectAll("path")
.data(isarithmicPolygons.features)
.join("path")
.attr("stroke", "white")
.attr("stroke-linejoin", "round")
.attr("fill", d => color(d.properties.range))
.attr("d", path)
.append("title")
.text(d => " Avg yearly precipitation: " + d.properties.range);
svg.append("g")
.selectAll("path")
.data(isarithmicPolygons.features)
.join("path")
.attr("stroke", "white")
.attr("stroke-linejoin", "round")
.attr("fill", d => color(d.properties.range))
.attr("d", path)
.append("title")
.text(d => " Avg yearly precipitation: " + d.properties.range);
svg.append("g")
.selectAll("path")
.data(counties.features)
.join("path")
.attr("stroke", "gray")
.attr("stroke-linejoin", "round")
.attr("fill", d => "none")
.attr("d", path);
return svg.node();
}