{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example displays the top 10 countries by 2020 population as horizontal bars within a fixed margin, demonstrating the SVG margin convention. The bars are scaled using `scaleBand` for the y-axis and `scaleLinear` for the x-axis, with React managing state and D3's `csv` loading the UN population data. A margin object defines the inner plotting area, and the SVG is translated accordingly to position the chart.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/529703fd54ff4363bce0f77d51bb370c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}