{"version":"1.0","type":"rich","title":"the margin convention","description":"This example demonstrates the margin convention in data visualization by rendering a horizontal bar chart of the ten most populated countries using UN population data for 2020. It shows how chart area coordinates are offset from the SVG canvas using a margin object, translating the inner chart group by the left and top margins. The visualization is built with React and D3 v7, using d3.scaleBand for the categorical y-axis, d3.scaleLinear for the population x-axis, and d3.max to compute the domain. Data is loaded asynchronously via d3.csv from a remote gist URL, and the SVG output is generated declaratively through React components.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/16ba8df60a1f469888698063417ae76a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}