{"version":"1.0","type":"rich","title":"Margin convention","description":"This example demonstrates the margin convention in D3 by rendering a horizontal bar chart of UN population data for ten countries. The SVG output positions a grouped `<g>` element with margins applied via a `transform` attribute, while `scaleBand` and `scaleLinear` map country names and population values to the inner chart dimensions. The React component manages asynchronous CSV loading with `useState` and `useEffect`, and the code explicitly imports `csv`, `scaleBand`, `scaleLinear`, and `max` from the D3 v6 bundle.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/da97e6a7673847c0871864ca71705045?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}