🌍 Public
Viewing a saved revision (read-only)
fb3021b0c87a4e9ab4393b1eeaf15e3b
Activity6_population
A horizontal bar chart displays the population of 20 countries in 2010, sorted by country name. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numerical x-axis, and SVG `rect` elements for bars. Data comes from a remote CSV, loaded via `d3.csv`, with population values converted from thousands. Interactive hover tooltips show formatted values, while styled axes and labels clarify the visualization.
AI-generated descriptionA demonstration of how to start using D3 version 6.