🌍 Public
Activity 7
This horizontal bar chart displays the population of ten countries in 2020, with bars extending from left to right in descending order. Built with React and D3 v5, it uses `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and renders SVG rectangles. Country names appear on the y-axis, while population values are formatted in SI units (e.g., "1.2B") on the x-axis. Data loads asynchronously from a CSV file and displays a "Loading..." message until ready.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed
Comments
Sign in to join the discussion.