Activity 6
✓ Published0🌍 Public
A horizontal bar chart displays the populations of ten countries in 2020, sorted with the largest at the top. D3's `scaleBand` and `scaleLinear` map country names and population values to SVG rectangles, while custom React components `AxisBottom`, `AxisLeft`, and `Marks` render the axes and bars. The chart loads data from a remote CSV file using `d3.csv`, converts the year-2000 column to population by multiplying by 1000, and uses `d3.format` to abbreviate axis tick labels (e.g., billions). The visualization is built with React and D3 v5, rendering to SVG with a Poppins font and custom styling for ticks and marks.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed