{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the common “margin convention” in D3, where a chart’s inner plotting area is offset from the SVG edges by specified margins. It renders a horizontal bar chart of population data for the top ten countries from a CSV file, using `d3.csv` to load and parse the data, `scaleBand` and `scaleLinear` to map country names and population values to pixel positions, and React to generate the SVG rects. The visualization uses React’s `useState` and `useEffect` hooks to fetch the data asynchronously and update the display.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a2969d786722468898ae4b95410e20ea?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}