{"version":"1.0","type":"rich","title":"Bar Chart - Margin Convention","description":"A bar chart displays the top 10 countries by 2020 population from a UN dataset, with horizontal bars scaled by population count. The React component loads CSV data via D3’s `csv` method, then uses `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. SVG rectangles are rendered inside a translated group element that applies the margin convention, with dimensions calculated from fixed `width`, `height`, and `margin` objects. The chart updates after asynchronous data loading, showing a loading state initially.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3fe1a78a89b241bf970be66542558c17?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}