Skip to main content
100%

Let's start with D3.js

✓ Published3🌍 Public
Aalobry
Last edited Dec 15, 2020
Created on Dec 15, 2020

A horizontal bar chart displays population figures for twelve countries, sourced from a CSV file based on UN World Population Prospects data. The visualization uses D3.js v6 to construct an SVG, loading data via `csv()` and rendering bars with `scaleBand` and `scaleLinear`. Country labels appear on the left axis, while the bottom axis shows the population scale. The code converts the population values from thousands to absolute numbers and uses `axisLeft`, `axisBottom`, and rectangle elements to present the data clearly.

AI-generated description

Histogram from CSV file Data comes from https://population.un.org/wpp/Download/Standard/Population/

MIT Licensed

Similar vizzes