🌍 Public
Viewing a saved revision (read-only)
b35dd97f6f4d41f3892fd7e1ddce0d60
MarginConvUNPop
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 descriptionA program that looks at the CSS colours from (https://gist.githubusercontent.com/rayking99/378256fd70d26e5bbbbf834037092eab/raw/13a0c07ceb1a099c4aba16f2d53220e25ff02144/csscoloursjp.csv)