{"version":"1.0","type":"rich","title":"Rendering data with React","description":"This example renders a flat, 960-pixel-wide color bar from a CSV of CSS named colors. It shows how React’s declarative component structure can replace manual SVG or HTML generation for D3-loaded data. The `App` component uses `useState` and `useEffect` to fetch the remote CSV via D3’s `csv` utility, then maps each row to a `<div>` whose `backgroundColor` is set from the `RGB hex value` column. Rendering is done through React 18’s `ReactDOM.render`, producing a simple stacked sequence of colored strips.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9c8ed6ca39d343c78bd66e3037e96a64?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}