{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example shows a pie chart where each slice represents a CSS named color, with the slice fill matching the color itself. The data, loaded from a remote CSV file using D3’s `csv` utility, is rendered entirely through React components. React’s `useState` and `useEffect` hooks manage the asynchronous loading of the color data, while D3’s `pie` and `arc` generators compute the slice angles and SVG path geometries. The chart is drawn as an SVG, centered on a canvas of 960 by 500 pixels, with React mapping each data row to a colored `<path>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d5275477557b467a80bb43afe5a26a4f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}