{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example uses the D3 margin convention in a React-based bar chart to display the ten most populous countries from UN population data for 2020. The chart uses `d3.scaleBand` for the y-axis, `d3.scaleLinear` for the x-axis, and SVG `<rect>` elements to render each bar. Data is loaded asynchronously with `d3.csv` and rendered via React's `useState` and `useEffect` hooks. The margin object defines a 20-pixel padding around the SVG canvas, with the chart group translated to that offset using a `transform` attribute.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/77c82cb15ff94a38bc7a7c5f821790ea?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}