{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example demonstrates the margin convention in data visualization by rendering a bar chart of population data for the top 10 countries from a UN Population 2019 CSV file. The chart uses D3 v7’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, with React state managing the asynchronous data loading via `d3.csv`. The SVG is sized to the window, and the chart is translated by fixed margin values, showing how inner plotting area dimensions are calculated from the total width and height minus margins.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b07c2504aa574cb6942b2b7716eac478?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}