{"version":"1.0","type":"rich","title":"Visualizing Data with React and D3 - Bar Chart Margin Convention","description":"This example demonstrates a horizontal bar chart that displays the top 10 countries by population in 2020, sourced from a UN Population CSV file. The visualization uses React to manage state and render SVG elements, while D3’s `scaleBand` and `scaleLinear` handle the categorical and quantitative scales. The chart applies the margin convention by translating a `<g>` element based on defined margins, ensuring proper spacing around the plotting area. Data is loaded asynchronously using D3’s `csv` function and rendered dynamically once fetched.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/42a84812b291409d8d82e6d75722872b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}