Skip to main content
100%

MarginConvUNPop

✓ Published1🌍 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
MIT Licensed

Similar vizzes