choropleth = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("transform", "translate(60,20)")
.append(() =>
legend({
color: color,
title: data.title,
width: 300,
tickFormat: ".2f"
})
);
svg.append("g")
.selectAll("path")
.data(WashingtonCounties.features)
.join("path")
.attr("stroke", "black")
.attr("stroke-linejoin", "round")
.attr("stroke-width", 1.1)
.attr("fill", d => color(data.get(d.properties.COUNTYFP10)))
.attr("d", path)
.append("title")
.text(d => "Percent White" + (data.get(d.properties.COUNTYFP10)));
return svg.node();
}