{"version":"1.0","type":"rich","title":"Margin Convention","description":"This example demonstrates the margin convention for D3 visualizations, rendering a horizontal bar chart of population data for 20 countries in 2020. The chart displays country names on the y-axis and population values on the x-axis using `scaleBand` and `scaleLinear`. SVG rectangles are positioned inside a translated group element to respect the margin. The data is loaded from a CSV file using `d3.csv`, and the visualization is built with React, leveraging hooks like `useState` and `useEffect` to manage state.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d1a2f216085040c99266d6493bf5e673?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}