{"version":"1.0","type":"rich","title":"the margin convensiion","description":"This example displays a horizontal bar chart of the top 10 countries by population in 2020. The view encodes population values as bar lengths using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical country labels on the y-axis. Data loads asynchronously from a CSV via `d3.csv`, with React’s `useState` and `useEffect` managing the fetching and rendering cycle. The SVG output respects a fixed margin convention by translating a `<g>` element to offset the chart area.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/30a63c75bb4b4a4bb83b09a4b391e940?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}