🌍 Public
Viewing a saved revision (read-only)
52553cf33c784840b30248f5906faa4f
Activity 8
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.