🌍 Public
Viewing a saved revision (read-only)
4bf53341ad9b4ee9b5c700e8e9b1aab6
Fork of Fork of Barchart with D3.js
This visualization displays the population of the top 10 most populous countries as horizontal bars, sorted by descending value. It uses D3 v5 with SVG rendering, loading data from a CSV file and scaling populations (normalized by thousands) via `scaleLinear` and `scaleBand`. Axes are generated with `axisBottom` and `axisLeft`, with the y-axis stripped of its domain line and ticks. The code formats tick labels using D3's `format` function, converting billions to ‘B’ suffix.
AI-generated description