{"version":"1.0","type":"rich","title":"Fork of Making a bar chart","description":"This example uses React to render a horizontal bar chart of the 12 most populous countries, based on 2020 UN population estimates loaded from a CSV file with D3’s `csv` function. The chart displays each country’s name on the vertical axis, scaled with `scaleBand`, and its population on the horizontal axis, scaled with `scaleLinear`. SVG `<rect>` elements are generated directly in JSX, with widths computed from the population values. The code also includes a simple loading state and uses React’s `useState` and `useEffect` hooks to manage asynchronous data fetching.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1e68cb593e86435aa8edc74e49ffbca3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}