The black dots show the midpoint computed by d3-shape’s arc.centroid. Note that this is not the geometric center of the arc, which may be outside the arc; this method is merely a convenience for positioning labels.
forked from mbostock's block: Pie Centroid
forked from anonymous's block: Pie Centroid
https://d3js.org/d3.v4.0.0-alpha.4.min.js