{"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 the ten most populous countries from a UN population dataset. The chart uses React to manage state and render SVG elements, with D3’s scaleBand and scaleLinear used to map country names and population values to pixel coordinates. A `<g>` element translates the chart by the specified margins, ensuring the bars are positioned within the allotted inner dimensions. The data is loaded asynchronously via `d3.csv`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/c5459cf5ea964df8b20b7340307b083c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}