{"version":"1.0","type":"rich","title":"Margin Convention","description":"This example demonstrates how to visualize the populations of the top ten countries using a bar chart rendered as static SVG elements in React. The chart uses a band scale for country names on the y-axis and a linear scale for population values on the x-axis, with a margin convention applied to position the chart within the viewport. Data is loaded from a CSV file containing UN population estimates for 2019 using `d3.csv`, while `d3.scaleBand` and `d3.scaleLinear` handle the scaling. The visualization is built with React functional components and hooks, with D3 v6 utilities supplying the data-processing and scale functions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6101095bcd15494ab7adbe85ae3797b1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}