Activity 6 task1-Q1
✓ Published2🌍 Public
This example visualizes the population of 10 African countries in the year 2000 as a horizontal bar chart, with bars rendered as purple rectangles and population values formatted in millions along the x-axis. The visualization uses d3.v6 with a scaleLinear for the population axis and scaleBand for the categorical country names, drawing SVG elements directly. Data is loaded asynchronously via a useData module returning a static array, and axes are generated using d3.axisBottom and d3.axisLeft, with y-axis labels rotated and x-axis labeled "POPULATION – 2000".
AI-generated descriptionMIT Licensed