D3.js arc.centroid() Function
The arc.centroid() function is used to compute the midpoint of the centerline of the arc. The midpoint that is generated is calculated using (startAngle+endAngle)/2 and (innerRadius+outerRadius)/2.
Parameters: This function accepts a single parameter as mentioned above and described below.
- arguments: These are the arbitrary arguments.
Return Values: This function return an array containing the points.