Activity_6 Task 1
✓ Published1🌍 Public
This chart displays the populations of up to 30 countries as horizontal bars, ranked from largest to smallest. Each bar’s length encodes the 2020 population value, with a text tooltip appearing on hover to show the precise figure. The visualization is built with React and D3 v5, using `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and SVG `rect` elements for the marks. Data is loaded asynchronously from a CSV file via `d3.csv`, and formatted using `d3.format` to abbreviate large numbers.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed