{"version":"1.0","type":"rich","title":"Margin Convention","description":"This example demonstrates the margin convention in D3, rendering a horizontal bar chart of population data for the top 10 countries in 2020. The chart displays bars scaled by population using `d3.scaleLinear` and `d3.scaleBand`, with the SVG group translated to respect the defined margins. React manages the component state, loading the CSV data via `d3.csv` before rendering the SVG rectangles.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9ddbde6b8260476dba5f470399ec9990?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}