choropleth = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("transform", "translate(360,20)")
.append(() =>
legend({
color: color,
title: data.title,
width: 200,
tickFormat: "0.1%"
})
);
svg.append("g")
.selectAll("path")
.data(MNcounties.features)
.join("path")
.attr("stroke", "grey")
.attr("stroke-linejoin", "round")
.attr("stroke-width", .25)
.attr("fill", d => color(data.get(+d.properties.COUNTYFIPS)))
.attr("d", path)
.append("title")
.text(d => "Percent Hispanic: " + data.get(+d.properties.COUNTYFIPS));
return svg.node();
}