Fork of United Nations Bar Chart (Margin Convention)
This example displays a horizontal bar chart of the top 10 most populous countries in 2020, using data from the United Nations population dataset. The chart applies the margin convention to create space for axes and labels, with bars sized proportionally to population values. Built with React and D3 v7, it loads the CSV data asynchronously using `d3.csv`, scales the bar lengths with `d3.scaleLinear`, and positions countries vertically using `d3.scaleBand`. The visualization renders as SVG, with each bar drawn as a `rect` element inside a translated group.
AI-generated descriptionBasic Bar Chart [Data Wold Population 2019] (https://gist.githubusercontent.com/curran/0ac4077c7fc6390f5dd33bf5c06cb5ff/raw/605c54080c7a93a417a3cea93fd52e7550e76500/UN_Population_2019.csv) Loading using React and D3