{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3","description":"This visualization displays the top 10 countries by 2020 population as horizontal bars, with the bar lengths proportional to population values. The React component fetches CSV data from a GitHub-hosted UN Population dataset using D3's `csv` utility. React's `useState` and `useEffect` hooks manage the asynchronous data loading, while D3's `scaleBand` and `scaleLinear` map countries to y-coordinates and populations to bar widths, respectively. Each `<rect>` element renders directly into an SVG canvas via ReactDOM.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c445bf4c77bc4be8b5c0aa1fa5d012cf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}