{"version":"1.0","type":"rich","title":"Fork of Fork of Fork of Make a bar chart with react and d3","description":"This example shows a horizontal bar chart ranking the top 20 countries by 2020 population, rendered as SVG rectangles in React. The code loads data from a CSV of UN population statistics using `d3.csv`, then uses `scaleBand` for the categorical country axis and `scaleLinear` for the population values. React’s `useState` and `useEffect` manage the asynchronous data loading, while JSX maps each country to a `<rect>` element. The chart updates purely through React’s render cycle, with D3 providing only scales and data parsing utilities.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/477bcd4d3abd4dd0a3d89aeac8304588?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}