🌍 Public
Viewing a saved revision (read-only)
e249f07ca086468bbf58c3fe544ccc78
ACTIVITY_6_TASK1
This horizontal bar chart compares the 2020 populations of the top 30 countries, with each bar’s length proportional to population and the y-axis ordered by country name. Using D3 v7, the code applies a linear scale for the population axis and a band scale for countries, rendering the bars as SVG rectangles. Axis formatting converts large numbers to billions via `d3.format`, while data is fetched from a remote CSV file. The chart’s axes include clear labels for “Countries” and “POPULATION-2020”.
AI-generated description