{"version":"1.0","type":"rich","title":"Refactored Bar chart","description":"This example shows a horizontal bar chart of the top 10 countries by population, using data loaded from a publicly hosted CSV of the 2019 UN population estimates. The chart renders population values on the x-axis and country names on the y-axis using SVG. The code builds the visualization with React components for the axes and marks, while D3’s `csv`, `scaleBand`, `scaleLinear`, and `max` utilities handle data loading and coordinate mapping. React state manages the asynchronous data fetch, and the axes are drawn as reusable function components.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/40da5029be8243f2b5dc3f2d64e785e8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}