{"version":"1.0","type":"rich","title":"donut chart with tooltip and legend","description":"This donut chart displays four categorical values as colored arcs, with a legend mapping each label to its corresponding color and a tooltip that follows the mouse to show the current cursor coordinates. Built with D3 v4, it uses `d3.pie` and `d3.arc` to generate the donut geometry, `d3.scaleOrdinal` with `d3.schemeCategory20c` for coloring, and `d3.scaleBand` to position the legend items. The SVG renders the arcs and legend, while a custom tooltip div appears on mouseover, updates its text via `d3.event.pageX` and `pageY`, and hides on mouseout.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-13f2706eac2d668d99bb699a019272d8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}