{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, as listed in the UN Population 2019 CSV dataset loaded via D3’s `csv` utility. The React component uses `scaleBand` and `scaleLinear` to map country names and population values to the SVG viewport, with the bars rendered as `<rect>` elements in `Marks.js`. The axis components `AxisBottom` and `AxisLeft` reuse D3’s scale functions directly, while React state managed by `useState` and `useEffect` handles asynchronous data loading.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d6cccd63e8834129a10a71f89c2deb5d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}