{"version":"1.0","type":"rich","title":"Rendering data with react","description":"This visualization renders CSS named colors as a series of stacked horizontal bars, creating a swatch-like display. Using React's `useState` and `useEffect` hooks, it asynchronously loads a CSV file of color data from a GitHub gist via `d3.csv`. The app displays a \"Loading...\" message until the data arrives, then maps each row to a div element whose background color is set by the `RGB hex value` field, with a fixed width and height. The example demonstrates integrating D3's data-fetching utilities with React's component-based rendering and state management.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9fd7c995dc96419cabb93a3f879dee68?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}