{
const svg = d3.select(DOM.svg(width, size(10000)*2 + 50));
const fmt = d3.format(" >5.2s");
var legend = d3.legendSize()
.shapePadding(width/5 - size(10000))
.orient("horizontal")
.shape("circle")
.labelFormat(fmt)
.title("Votantes por ciudad")
.scale(size);
let g = svg.append("g")
.attr("transform", "translate(50,20)");
yield svg.node();
g
.call(legend);
g.selectAll(".label")
.style("font", "10pt sans-serif");
g.selectAll(".swatch")
.style("fill", color(0));
}