I created a pie chart with D3. I want to calculate the center of each pie slice, so I can draw a line/path from the center of each pie slice. At the end of the line, it’ll have text.
Code Playground
I want something like this, but the line will be invisible when it’s inside the pie chart.