{"version":"1.0","type":"rich","title":"Loading Data with D3 and React","description":"This example shows a bar chart of the top 10 countries by projected 2020 population, using a dataset loaded asynchronously from a CSV file hosted on GitHub. The visualization renders as SVG rectangles scaled with `d3.scaleLinear` and `d3.scaleBand`. React’s `useState` and `useEffect` hooks manage the data-fetching lifecycle, calling `d3.csv` to parse the data and updating state once it arrives. A loading placeholder displays until the data is ready, then the bars appear.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e5f93c133ed24b4c92ccb2232f2662d2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}