Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

MarginConvUNPop

Public visualization

Viewing a saved revision (read-only)

c35c88795db1408d9a149932581db686

MarginConvUNPop

0 stars1🌍 Public
Rrayking99
Last edited Jun 10, 2021
Created on Jun 10, 2021
Forked from UNPop

This example displays a horizontal bar chart of the top ten countries by population for 2020, using data from the UN Population 2019 dataset. The chart renders as SVG via React, with D3 v6 functions `scaleBand`, `scaleLinear`, `max`, and `csv` handling data loading and scaling. The code applies margins to the SVG layout and maps each country’s population to bar widths.

AI-generated description