Activity 6
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 countries by population in the year 2000, with green bars sorted in descending order. The visualization uses D3 v7 with SVG rendering, loading CSV data from a GitHub gist. It employs d3.axisBottom and d3.axisLeft for the axes, d3.scaleLinear for the x-scale, and d3.scaleBand for the categorical y-scale. The chart handles data cleaning by filtering out invalid population values and includes an axis label; the rendering approach uses the join pattern in d3-selection.
AI-generated descriptionMIT Licensed