{"version":"1.0","type":"rich","title":"Population Bar Chart With Margin Convention","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, using React to render SVG elements. The chart applies a common margin convention, translating a group element to inset the plotting area within a fixed 960×500 viewport. It uses D3’s `scaleBand` and `scaleLinear` to map countries and population counts to pixel coordinates, loading data from a CSV of UN population figures. Bars are drawn as `<rect>` elements inside the transformed group, demonstrating a clean separation between axes, labels, and content.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e65bb95c05da4a7e9cc38e1effba6942?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}