{"version":"1.0","type":"rich","title":"Refactoring Bar Chart","description":"This example shows a horizontal bar chart displaying the top 10 countries by population in 2020, based on UN population data fetched from a GitHub gist. The chart is built with React components that render SVG elements, using D3 scales to map population values to bar widths and country names to vertical positions. The `scaleBand` and `scaleLinear` functions handle the axis mappings while custom React components (`AxisBottom`, `AxisLeft`, `Marks`) generate the tick labels and rectangular bars from the data array. The visualization demonstrates a modular refactoring approach where D3 utilities are used for data loading and scaling, while React manages the component structure and SVG rendering.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f5ddb0c4e8834710b129cfd09f59cb9d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}