I using the following code for my select function
quadrants = ["a", "b", "c", "d"];
for (var i in quadrants)
{
svgContainer.append("g").attr("class", quadrants[i]);
var group = d3.select(function () {return "." + quadrants[i]});
group.append("polygon");
.....
}
This does not work since the value of group is 'function () {return "." + quadrants[i]'. How do I fix it so that group selects ".a", ".b" and so on?