Skip to main content
100%

Fork of Fork of Barchart with D3.js

✓ Published1🌍 Public
Wwieswies
Last edited Feb 7, 2022
Created on Feb 7, 2022

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
MIT Licensed

Similar vizzes