Activity 6 Question 2
✓ Published0🌍 Public
A horizontal bar chart ranks the top 20 countries by 2010 population, with the US Census data loaded from a CSV. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The `format('.2s')` function abbreviates population values (e.g., "1.2B"), while SVG rectangles render the bars with a native tooltip on hover. The chart includes styled tick lines and labels, with axes and marks composed via reusable React components.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed