{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention for bar charts, showing the top 10 countries by 2020 population from a UN dataset. The code loads CSV data with `d3.csv`, processes it using a row conversion function, and renders SVG rectangles via React. It uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and `d3.max` to compute the domain. A `<g>` element translates the chart by the specified margin, with the inner width and height calculated by subtracting margins from the full dimensions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4d67ae8a9a804d38a73b12f608a45994?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}