{"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 top 10 most populous countries using 2020 UN population data loaded via `d3.csv`. The chart uses `d3.scaleBand` and `d3.scaleLinear` to map country names and population values to SVG `rect` elements within a translated `<g>` group, with explicit margins separating the inner plot area from the SVG edges. React state and the `useEffect` hook manage asynchronous data loading, while the entire visualization is rendered as SVG inside a React component.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/1c9e7164fe934d6fa8cd7313eacffb3d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}