{"version":"1.0","type":"rich","title":"Placing text within a arc","description":"This donut chart displays eight animal categories in equal segments, with labels positioned along the arc’s outer edge. Labels below the horizontal midline are flipped to remain upright, improving readability. Built with D3.js 3.5, the example uses `d3.svg.arc` for the donut slices and `d3.layout.pie` to compute the angles. It programmatically manipulates the SVG path data for the text placement, reversing the arc direction for segments where the end angle exceeds 90 degrees.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/15e5e3986fb4400fa01612269fae16b4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}