choropleth = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("transform", "translate(700,10)")
.append(() =>
legend({
color:quantize_white ,
title: whitedata.title,
tickSize: 5,
width: 300,
height: 60,
tickFormat: ".2f"
})
);
svg.append("g")
.selectAll("path")
.data(us_counties.features)
.join("path")
.attr("transform", "translate(5,1)")
.attr("stroke", "black")
.attr("stroke-linejoin", "round")
.attr("stroke-width", 1)
.attr("fill", d => quantize_white(whitedata.get(d.properties.GISJOIN)))
.attr("d", path)
.append("title")
.text(d => " White Rate: " + whitedata.get(d.properties.GISJOIN));
return svg.node();
}