{"version":"1.0","type":"rich","title":"Fork of Rendering data with react (pie chart)","description":"This example shows a horizontal bar chart of the ten most populous countries, using United Nations population data for 2020. It loads the data with `d3.csv` and renders each country as an SVG `<rect>` element. React hooks (`useState` and `useEffect`) manage the asynchronous data loading, while `d3.scaleBand` and `d3.scaleLinear` map country names and population values to pixel positions and bar widths. The visualization updates from a loading state to the final chart once the CSV resolves.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a74315ada9f447dd9283cb7c5277604a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}