{"version":"1.0","type":"rich","title":"Rendering data with React","description":"This example shows a React application that renders CSS named colors as horizontal stacked bars, using each color’s RGB hex value as the background. The data comes from a CSV file fetched with `d3.csv`, and the component uses React’s `useState` and `useEffect` hooks to manage the asynchronous loading state. Once loaded, the app maps each row to a `<div>` element with a fixed width and height, displaying a loading message via a `<pre>` tag before data arrives. The visualization relies on React’s declarative rendering rather than explicit D3 drawing methods.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8f8a8f5936304ce68790a68942b76d48?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}