{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example visualizes CSS named colors as a pie chart, where each slice represents one color from a dataset loaded via `d3.csv`. The visualization fills the entire browser window, with each slice colored by its corresponding hex value. Built with React and D3 v7, the code uses React’s `useState` and `useEffect` hooks to fetch the CSV asynchronously, displaying a “Loading…” message until the data arrives. The pie geometry is generated using `d3.arc` with an inner radius of zero, and the SVG paths are rendered dynamically based on the loaded data.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/441faa2c6e0a483fb551539fcb8c95a1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}