{"version":"1.0","type":"rich","title":"Margin Convention (Bar Chart)","description":"This example shows a horizontal bar chart of the top 10 countries by projected 2020 population, using data from the UN Population 2019 dataset loaded via `d3.csv`. The visualization applies the margin convention by defining an SVG container with a fixed width and height, then translating a group element by the left and top margins. Bars are rendered as SVG `<rect>` elements, with positions and widths computed using `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis. React manages the component state and lifecycle, fetching the data with `useEffect` and rendering declaratively.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/b3eb4fbdb4b046989c59885c9e19bf24?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}