🌍 Public
Viewing a saved revision (read-only)
a40fb3923b7a45e09ffa0e88e8d2db96
D3-2: Bar chart
A horizontal bar chart displays population figures for the ten most populous countries, with China leading at over 1.4 billion. The chart uses D3 v7 with an SVG rendering, employing `scaleLinear` for the x-axis population values and `scaleBand` for the categorical country labels on the y-axis. Data is loaded from a CSV file using `d3.csv`, and axes are generated via `axisLeft` and `axisBottom` with custom tick formatting that abbreviates large numbers.
AI-generated description