Skip to main content
100%

Refactored UN Populations

✓ Published1🌍 Public
MMonish Vassantrai
Last edited Sep 21, 2021
Created on Mar 16, 2021
Forked from UN Populations

This bar chart displays the top 10 countries by population from a 2020 UN dataset, with country names on the y-axis and population counts formatted in billions on the x-axis. The visualization uses React to render SVG elements while D3 v6 utilities handle data fetching via `csv`, scales via `scaleBand` and `scaleLinear`, and formatting with `format`. Each bar includes a native SVG `<title>` tooltip showing the precise population value. The code is refactored into reusable components for axes and marks, with a custom React hook (`useFetch`) managing the asynchronous data loading.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React render the data

MIT Licensed

Similar vizzes