{"version":"1.0","type":"rich","title":"Margin Convention","description":"This example demonstrates the Margin Convention in D3 by displaying a bar chart of the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The chart initially appears as a bare visualization with no axes or labels, emphasizing the layout structure. The React component uses `useState` and `useEffect` to load CSV data via `d3.csv`, while `d3.scaleBand` and `d3.scaleLinear` position and size the rectangles within a specified margin. The SVG output is rendered with React, applying a translation transform to offset the inner chart area from the outer margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d69a79fd347548ffb1874fcaafb3a566?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}