{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention, a fundamental layout principle for D3 visualizations, using React to render a bar chart of the top 10 most populous countries. The chart initially shows only bars without axes, emphasizing the importance of reserving space for chart furniture. The code uses `d3.scaleBand` and `d3.scaleLinear` to map country names and population values to screen coordinates, with data loaded from a CSV via `d3.csv`. The SVG output is positioned using a `transform` attribute that translates the inner group by the specified margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b8ede96c12bf455880b4c9454b097097?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}