activity6_q1
✓ Published0🌍 Public
A horizontal bar chart displays the ten most populous countries in the year 2000, with lightgreen rectangles whose lengths encode each country’s population value. The bars are sorted in descending order and labeled on the left axis. The visualization loads CSV data via d3.csv, maps and sorts the records in `useData`, then renders the chart using d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, with axes created by d3.axisBottom and d3.axisLeft. Numeric tick labels are formatted using d3.format.
AI-generated descriptionMIT Licensed