{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example demonstrates rendering a color swatch for every named CSS color, with each row displayed as a colored horizontal bar. The data is loaded from a CSV file using D3’s `csv` method, while React manages the component state with `useState` and `useEffect` to fetch and display the data. The bars are created by mapping over the parsed array and setting the `backgroundColor` style to each color’s hexadecimal value. A loading message appears until the data arrives, and the color strips are rendered at fixed dimensions within a React component mounted via `ReactDOM.render`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5ced7664bb9b4385be46db3229244b6e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}