{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention in D3 by rendering a horizontal bar chart of the top 10 most populous countries from UN population data. React manages the component state, fetching the CSV via `d3.csv` and storing the parsed data. The chart uses `scaleBand` for the y-axis country categories and `scaleLinear` for the x-axis population values, with bars drawn as SVG `rect` elements inside a translated group to respect the margin. The visualization shows how margins create space for potential axes while keeping the plot area clean.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4068b4b5791045129470d4235042e3ef?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}