{"version":"1.0","type":"rich","title":"The Margin Convention","description":"This example displays the top ten countries from a UN population dataset as a horizontal bar chart. The bars are rendered as SVG rectangles, with their lengths encoding the 2020 population figures. The chart uses a margin convention to position the plotting area within the SVG canvas. The code employs d3’s `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `csv` for data loading, while React manages the component’s state and renders the SVG output.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6ff3ea929b634bd4b6cda7c87f4e04e4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}