I am new to d3.js and don't know which d3 features to use.
I need to place a set of elements concentrically relative to the beginning (in a circle).
svg.selectAll('circle').each(function() { d3.select(this) .attr('cx', r * Math.cos(theta)) .attr('cy', r * Math.sin(theta)); theta += thetaInc; });
So, instead of doing something tedious like the code above, what is the short way d3 does it?
source share