🌍 Public
Viewing a saved revision (read-only)
b857d03c84424537a4b0fa29c8147f56
make bar
A horizontal bar chart displays the top ten most populous countries, with China leading and Mexico trailing. The chart uses D3 v5’s `csv` loader to parse population data, which is multiplied by 1,000, and `scaleLinear` and `scaleBand` to map values. SVG rectangles are positioned via the band scale, while `axisLeft` and `axisBottom` add categorical and numeric axes, with tick labels formatted using `format`. A custom title and axis label annotate the visualization, which is styled with steel blue bars and a monospace font.
AI-generated description