{"version":"1.0","type":"rich","title":"Margin Barchart","description":"This example displays a horizontal barchart of the top 10 countries by projected 2020 population, using a margin convention to place the y-axis labels on the left. The chart is built with React and D3 v5, where `scaleBand` positions the categorical country names and `scaleLinear` maps population values to bar widths. Data is loaded asynchronously via `d3.csv` from a GitHub-hosted UN Population dataset, and each bar is rendered as an SVG `rect` inside a translated `<g>` group. The visualization shows how React manages state and renders D3 scales into SVG elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/99d985f8532246e7a04c6d1971908a8e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}