choropleth_2 = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("transform", "translate(250,20)")
.append(() =>
legend({
color: color2,
title: data_2.title,
width: 260,
tickFormat: ".1f"
})
);
svg.append("g")
.selectAll("path_2")
.data(US_solar_2_feature.features)
.join("path_2")
.attr("stroke", "black")
.attr("stroke-linejoin", "round")
.attr("stroke-width", .1)
.attr("fill", d => color2(data_2.get(+d.properties.zip)))
.attr("d", path_2)
.append("title")
.text(d => " Percent Suitability " + data_2.get(+d.properties.zip));
return svg.node();
}