🌍 Public
Viewing a saved revision (read-only)
43795d64171446c8a1b9e47fdaf3d317
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.