{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example visualizes 148 CSS named colors as slices of a pie chart, with each slice filled using the color’s RGB hex value from a CSV dataset loaded via `d3.csv`. The React component uses the `useState` and `useEffect` hooks to fetch the data asynchronously and display a “Loading” message until it arrives. Once loaded, the code builds the chart using D3’s `pie()` and `arc()` generators, rendering SVG paths within a React-managed `<svg>` element. The visualization highlights the integration of D3’s data-loading and layout utilities with React’s declarative state management.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3bf1ceb0c70a4d6cb149be3f249851ac?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}