🌍 Public
Viewing a saved revision (read-only)
be866af0bf6b4e53a1c2982dbf15f3ac
Fork of Activity6_question1.2
This chart displays the 2010 population estimates for 20 countries as a horizontal bar chart, with countries sorted along the y-axis and population magnitudes along the x-axis. The visualization is built using React and D3 v5, with SVG rendering. It employs `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. A tooltip, implemented via an SVG `<title>` element, reveals the precise formatted population value for each bar. The data is loaded asynchronously from a CSV file using D3's `csv` function, and the x-axis labels are formatted using D3's `format` utility.
AI-generated descriptionA demonstration of how to start using D3 version 6.