🌍 Public
Viewing a saved revision (read-only)
7738ce9412534dadb6d5eb216c2cbb55
Fork of Activity 6 task1-Q2
This visualization displays a horizontal bar chart of the population of ten African countries in the year 2000, with bars rendered as purple rectangles using D3 v6’s SVG API. It uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` to generate axes. Population values are formatted in millions, y-axis labels are rotated, and inline data is loaded asynchronously via `useData` and `d3.select`. The chart emphasizes readability with increased margins and axis labels.
AI-generated description