{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example displays a horizontal bar chart of the top 10 most populous countries in 2020, drawing from UN population data loaded via D3’s `csv` utility. React renders an SVG with scaled rectangles, using `scaleBand` for country categories and `scaleLinear` for population values, all positioned within a fixed margin using the `transform` attribute. The code relies on D3 v5 and React’s `useEffect` and `useState` hooks, with the chart’s dimensions computed from explicit top, right, bottom, and left margins to define the inner plotting area.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c6946fe463a94051b8bdf0bcb853202d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}