{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates loading and displaying CSS named colors as vertical color stripes, with data fetched asynchronously from a remote CSV file. The React component uses the `useState` and `useEffect` hooks to manage the data-loading state, showing a “Loading…” message until the data arrives. It employs D3’s `csv` function to parse the external dataset, then maps each row to a styled `<div>` element whose background color corresponds to the `RGB hex value` column. The visualization updates dynamically once the data is ready, rendering 148 color swatches in a full-width strip.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/75994051d4d94fb9818b72d9eacdfb46?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}