{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example demonstrates rendering a dataset of CSS named colors as a series of horizontal stacked bars, each colored by its corresponding RGB hex value. The visualization uses React to map each data row to a div element, with the background color set directly from the CSV field. D3’s `csv` function loads the color data asynchronously from a GitHub gist URL, while React’s `useState` and `useEffect` hooks manage the loading state. Once fetched, the app renders a full-width strip of colored segments, with a loading message displayed until the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2b2c30759e4643d4920005524fc484fd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}