{"version":"1.0","type":"rich","title":"Margin Conventions","description":"This example demonstrates the importance of margins in data visualization by rendering a horizontal bar chart of the top 10 countries by population in 2020. The chart uses a React component that fetches data from a GitHub-hosted CSV file via D3's `csv` utility. An SVG is drawn with `rect` elements, positioned using D3's `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The code explicitly defines a `margin` object and translates the plot group by its top-left values to keep the bars inside the viewport.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8377b02999e047118fb3f3863e1e8504?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}