{"version":"1.0","type":"rich","title":"Make bar chart with React using D3","description":"This example shows a horizontal bar chart of the ten most populous countries in 2020, using data loaded from a CSV file via `d3.csv`. The chart maps country names to a `scaleBand` on the y-axis and population values to a `scaleLinear` on the x-axis, rendering each bar as an SVG `<rect>` element. Built with React and D3 v7, the component fetches data asynchronously in a `useEffect` hook and stores it with `useState`, updating the visualization once loaded.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/72a9c0aa59a24c85986e2f573515aa09?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}