{"version":"1.0","type":"rich","title":"Rendering data with React and D3 colors","description":"This example visualizes CSS named colors as a stacked sequence of horizontal bars, with each bar’s background color set to its corresponding RGB hex value. The data loads from a CSV file using D3’s `d3.csv` utility, while React’s `useState` and `useEffect` hooks manage the loading state and trigger the asynchronous fetch. Once the data arrives, React maps each row to a `<div>` element, setting its inline style for `backgroundColor`, width, and height. The page displays a “Loading…” message until the dataset is fully parsed.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/11100a8c758541dc8c2882daae4f147c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}