{"version":"1.0","type":"rich","title":"Loading Data with React and Data","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, rendered as SVG using React. The code loads CSV data from a GitHub gist with `d3.csv`, then uses `scaleBand` and `scaleLinear` to map countries and population values to positions and bar widths. React’s `useState` and `useEffect` manage the asynchronous data loading, with a \"Loading...\" fallback until data arrives. Gridlines and axis labels are generated from the scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/91f5aa8a2b68440b8b37ebf252bc083d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}