Closed chetanzalake closed 6 years ago
Please use Stack Overflow tag d3.js to ask for help. Stack Overflow provides a better collaborative forum: thousands of D3-related questions have been asked there, and some answers may be relevant to you.
When asking for help, please include a link to demonstrate the issue, preferably as an Observable notebook. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗
I am creating a pie chart, but I am not able to add a label to it. If I use text along with shape in group app crashes. I can see in the documentation under Arc shapes you have mentioned in the description of method arc.centroid that, "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." I was able to draw the arcs but not able to place labels in the arc. Please provide me a solution how can I do it?
Below is the reference of pie chart how I want to draw.