{"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 population data for the top 10 countries from a CSV file. The visualization uses React to manage state and render SVG elements, while D3 utilities (`csv`, `scaleBand`, `scaleLinear`, and `max`) handle data loading and scaling. A fixed margin object creates inner dimensions for the plot area, with bars translated inside a `<g>` element. The chart shows each country's 2020 population as a proportional bar, with axes omitted to focus purely on bar lengths and spacing.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e4e73b1649ee440099aa2ce5c1fc7cdd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}