Activity6_Q1
✓ Published0🌍 Public
This example shows a horizontal bar chart ranking the top 10 countries by population in the year 2000, drawn as an SVG using D3 v7. The chart uses `d3.scaleLinear` for the x-axis (population) and `d3.scaleBand` for the categorical y-axis (countries), with data loaded from a CSV via `d3.csv`. Green rectangles encode each value, and the axes are generated with `d3.axisBottom` and `d3.axisLeft`. The data is pre-sorted in descending order before slicing to the first 10 entries.
AI-generated descriptionMIT Licensed