Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Barchart with D3.js

Public visualization

Viewing a saved revision (read-only)

5866e5011cd44d8682196701680b3c70

Fork of Fork of Barchart with D3.js

0 stars1🌍 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