{"version":"1.0","type":"rich","title":"Random Data with React","description":"This example displays a vertical stack of colored horizontal bars, one for each CSS named color, loaded from a remote CSV file. The visualization uses React's `useState` and `useEffect` hooks to asynchronously fetch and store the data with `d3.csv`, then renders each row as a `div` whose background color is set to the hex value from the dataset. The bars are 960 pixels wide and 5 pixels tall, creating a continuous spectrum. The code integrates D3 v7 for data loading with React 16.9 for component rendering and state management.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fa743179e8c04167b0b87ae5aac61aea?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}