{"version":"1.0","type":"rich","title":"Rendering Data w- React","description":"This example renders the CSS Named Colors dataset as a vertical stack of thin colored rectangles. Each row in the CSV file becomes a single div element, with its background color set from the dataset’s `RGB hex value` field, forming a 960-pixel-wide spray. The visualization is built with React, using the `useState` and `useEffect` hooks to asynchronously load the CSV via D3’s `csv` function, and then maps each record to a styled div. ReactDOM mounts the final component into the page’s root element, displaying all color swatches stacked without gaps.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5e90574ec98c44b58fdfb028b351fadf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}