mapaVulProp = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.selectAll("path")
.data(topojson.feature(br, br.objects.uf).features)
.join("path")
.attr("stroke", "none")
.attr("fill", d => fillScaleVulProp(dataMap.get(d.id).vulnerable_prop))
.attr("d", path)
.append("title")
.text(d => `${d.properties.name} : ${format2(dataMap.get(d.id).vulnerable_prop)}`);;
svg.append("path")
.datum(topojson.mesh(br, br.objects.uf, (a,b) => a !== b))
.attr("stroke", "white")
.attr("stroke-linejoin", "round")
.attr("stroke-width", 1.2)
.attr("fill", "none")
.attr("d", path);
svg.append("g")
.attr("transform", "translate(410,20)")
.append(() => legend({color: fillScaleVulProp,
title: "População vulnerável (em proporção)",
width: 250,
tickFormat: ".1f"}));
return svg.node();
}