Activity 8
✓ Published1🌍 Public
This bar chart shows the top 30 countries by 2020 population, with horizontal bars sorted by country name along the y-axis and population extent along the x-axis. The D3 v5 code builds a linear x-scale from the maximum population value and a band scale with 15% inner padding for the categorical y-axis. React components render SVG rectangles for each bar, with tooltips formatted using the “G” to “B” abbreviation replacement. Data is loaded from a CSV via `d3.csv` from a GitHub gist.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed