{"version":"1.0","type":"rich","title":"Pie Chart Rotation on Click","description":"Clicking a wedge of this donut chart rotates the entire pie so that the selected segment lands at the bottom, while the age-group labels counter-rotate to remain upright. Built with D3 v4, it uses `d3.pie` and `d3.arc` for geometry, SVG paths for rendering, and a transition on the group’s `transform` attribute over one second. The color scale maps seven population age brackets, and the label rotation is reversed via `label.centroid` calculations.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-a73f9af9ccd9ef901a0c33c624096049?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}