{"version":"1.0","type":"rich","title":"Pie Chart with React","description":"This example demonstrates how to build an interactive pie chart using React and D3.js. It visualizes categorical data from a CSV file, showing the distribution of letters A through G with corresponding count values. The chart displays colored pie segments with letter labels, alongside a legend that shows each letter and its count. Users can click on either pie segments or legend items to highlight a specific category, dimming the others. The implementation uses D3's `pie` and `arc` generators for creating the pie geometry, `scaleOrdinal` for color mapping, and React's `useRef` and `useState` hooks for managing state and rendering with the `ResizeObserver` to handle responsive dimensions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3524d1ebf88f44858df05863b53dedd4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}