{"version":"1.0","type":"rich","title":"Donnors Pie Chart - React & D3.js","description":"This example shows an interactive pie chart for donor contributions, with a table below that lets users choose which data attribute to visualize—overall proportions, COVID-19–related funding, or other purposes—by hovering over column headers. The chart recomputes the pie slices based on the selected attribute, which is passed up from the table via a state setter in React. The visualization uses D3’s `pie` and `arc` generators to compute the slice geometry and `interpolateRgb` to assign a color scale, while React renders the SVG elements and manages the dynamic state.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b1ea296caf8c4657a629f4773686cebe?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}