{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example visualizes the top 10 most populous countries in 2020 as a horizontal bar chart using React and D3. The data, loaded via `d3.csv` from a UN population dataset, is rendered as SVG rectangles whose widths encode population values. A `scaleBand` positions countries along the y-axis, while a `scaleLinear` maps population to pixel widths. The chart demonstrates the margin convention by offsetting the render group with `transform` and calculating `innerHeight` and `innerWidth` from fixed margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1af91bb66bb84a9bb4947357f4c6bd31?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}