chartMap = {
var projection = d3.geoMercator()
.scale(18000)
.center([-7.9, 43.3]);
const path = d3.geoPath()
.projection(projection);
const g = svgMap.append('g');
g.selectAll('.concello')
.data(galicia.features)
.enter()
.append("path")
.attr("fill", "#ccc")
.attr("stroke", "#fff")
.attr("d", path);
g.selectAll("circle")
.data(galicia.features)
.enter().append("circle")
.attr("fill", "red")
.attr("fill-opacity", 0.5)
.attr("stroke", "#fff")
.attr("stroke-width", 0.5)
.attr("transform", d => `translate(${path.centroid(d)})`)
.attr("r", d => radiusFn(d.properties.population));
return svgMap.node();
}