block by mbostock c274877f647361f3df7d

Donut Centroid

Full Screen

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.

Updated Example →

index.html