{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how React and D3.js can work together to load and render a dataset of CSS named colors. The page displays a vertical stack of colored horizontal bars, each representing a color from the data, with the width fixed at 960 pixels. The code uses React’s `useState` and `useEffect` hooks to manage asynchronous data loading via D3’s `d3.csv` utility, which fetches the CSV data from a remote URL. Until the data arrives, the interface shows a \"Loading...\" message, after which React maps the parsed rows to styled div elements. The example highlights a simple pattern for integrating D3’s data-loading capabilities with React’s state-based rendering.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6e04ffb06a914710ad3260fd5556b957?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}