{"version":"1.0","type":"rich","title":"Fork of Loading Data with React & D3","description":"This example shows a React component that loads a CSV file of named colors using D3 and renders each color as a horizontal stripe, creating a full-width stacked bar visualization. The `useState` and `useEffect` hooks manage the asynchronous data loading, displaying a “Loading…” message until the data arrives. The code uses `d3.csv` to fetch the dataset from a GitHub gist, then maps over the parsed rows to generate div elements with inline styles for background color, width, and height. React 17 and D3 v7 are loaded from CDNs, with rendering handled by `ReactDOM.render`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9402a7697cb5459bb2c0ea342350cd53?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}