activity 6_Task 1 Q2
✓ Published1🌍 Public
This example shows a horizontal bar chart of the top 20 countries by population in 2010, sorted in descending order. Each bar’s length encodes population using a d3.scaleLinear, while country names are positioned on a d3.scaleBand axis. The visualization uses D3 v5 to append SVG rectangles, with d3.axisBottom and d3.axisLeft for labeled axes. Data is loaded asynchronously via d3.csv from a GitHub-hosted CSV file, and the styling uses purple bars with green axis labels in a white, card-like container.
AI-generated descriptionMIT Licensed