{"version":"1.0","type":"rich","title":"The Margin convention","description":"This example demonstrates the margin convention in D3.js by rendering a bar chart of United Nations population data for 2019, showing the top 10 countries. The visualization uses React components with D3 scales (d3.scaleBand and d3.scaleLinear) to map countries to the y-axis and population values to the x-axis. An SVG group element applies the margin offsets via a transform, separating the plotting area from the axes. The code fetches the CSV data using d3.csv and renders grid lines, tick labels, and horizontal bars within the defined inner dimensions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/910b5464d1d6452cbde3b6e1d30b3a91?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}