{"version":"1.0","type":"rich","title":"Rendering Data with React & D3","description":"This example renders a donut chart of CSS named colors, with each slice sized equally and filled using the color’s hex value from a CSV dataset. The code combines React state and hooks—`useState`, `useEffect`, and `useCallback`—with D3 utilities `csv`, `pie`, and `arc` to load data and compute path geometries. SVG paths are generated inside a React component, while the chart is centered via a `<g>` transform. Loading feedback displays the text \"Loading...\" until the CSV arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/096d7b8543cf4b2cb2e2e624448abbc2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}