🌍 Public
Viewing a saved revision (read-only)
5866e5011cd44d8682196701680b3c70
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