I am creating a piechart with D3 using d3.layout.pie().
It looks like this one, without black dots (I\'ve put them manually in Photoshop to illustrate my issue
It may sound trivial but I was trying to find the x and y coordinates inside each slice, and when I saw the formula posted above,
x = cx + r * cos(a)
y = cy + r * sin(a)
, it can be done by increasing r from (cx+1 or cy+1) to radius length, and repeating by increasing (a) from origin angle to destination angle, then adding (cx, cy). Hope it helps someone.