{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example demonstrates how React and D3 work together to render a dataset as a pie chart. The visualization shows all named CSS colors as equal-sized slices arranged in a ring, with each slice filled using its corresponding hex value from a CSV file. The code uses React’s `useState` and `useEffect` hooks to load the data with D3’s `csv` utility, then maps over the parsed rows to generate SVG `<path>` elements. The pie layout and arc generator (`d3.pie` and `d3.arc`) compute the angles and paths for each slice.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/74508e0475034cccb4d869d814473cb1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}