{"version":"1.0","type":"rich","title":"Rendering data with react","description":"This example displays all CSS named colors as horizontal stripes across the browser window, using a data-driven approach. The code loads a CSV file of color names and their RGB hex values via `d3.csv`, then maps each row to a styled `<div>` element with a background color set from the data. React manages the state and conditional rendering, showing a loading message until the asynchronous data fetch completes. The visualization uses React’s `useState` and `useEffect` hooks with D3 v5 utilities to fetch and parse the remote dataset.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/53f3bc82e10c4e6dadf9a6f75f16b3cf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}