Activity 7
✓ Published0🌍 Public
This bar chart displays the population of the top 20 countries in 2020, sorted vertically with a horizontal bar for each country. The visualization uses React with D3 v5, employing `d3.csv` to load the data, `d3.scaleBand` for the y-axis, and `d3.scaleLinear` for the x-axis. Population values are formatted with D3’s `d3.format` to abbreviate large numbers. The chart is rendered as an SVG with custom React components for the axes and bars, and includes a tooltip showing the exact population on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed