choropleth = {
const svg = d3.create("svg")
.attr("viewBox", [0, 15, width, height]);
svg.append("g")
.attr("transform", "translate(360,20)")
.append(() =>
legend({
color: color,
title: data.title,
width: 350,
tickFormat: ".2%"
})
);
svg.append("g")
.selectAll("path")
.data(county_features.features)
.join("path")
.attr("stroke", "black")
.attr("stroke-width", 0.5)
.attr("stroke-linejoin", "round")
.attr("fill", d => color(data.get(+d.properties.FIPS)[1]))
.attr("d", path)
.append("title")
.text(d => format(data.get(+d.properties.FIPS)[1]));
return svg.node();
}