{"version":"1.0","type":"rich","title":"Rendering data with react","description":"This example renders the CSS named colors as a pie chart using D3.js within a React application. It loads color data from a CSV file containing color names and RGB hex values, then maps each color to a pie slice using the `pie()` and `arc()` functions from D3. The React component uses `useState` and `useEffect` to fetch the data asynchronously, displaying a \"Loading...\" message until the CSV is ready. The resulting SVG visualization, centered in a 960x500 viewport, displays each named color as a filled path segment.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/47b473fdc9cb44278a566b24e725330d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}