{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example displays a horizontal bar chart of the top 10 most populated countries using data from a UN Population CSV file. The chart initially renders without axes, showing only colored bars, before the refactored code adds x and y scales. Using React with D3 v5, it employs `scaleBand` for the categorical country axis and `scaleLinear` for population values. The `AxisBottom` and `AxisLeft` components generate tick marks and labels, while `Marks` renders the rectangles, with the final SVG output composed of these reusable parts.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6c713132c7d34e8ea3bca69ed5b93bcf?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}