{"version":"1.0","type":"rich","title":"Making a Bar Chart with React & D3","description":"This example shows a horizontal bar chart of the top 10 most populous countries in 2020, rendered as SVG rectangles. React manages the loading state and data via `useState` and `useEffect`, while D3 utilities handle data fetching with `d3.csv`, quantitative scaling with `scaleLinear`, and categorical positioning with `scaleBand`. The chart updates once the CSV data from a GitHub gist is loaded, mapping each country’s population to a rectangle width in a fixed 960×500 viewport.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/704d76a8fac24cedbcdbc858e68ec8ca?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}