Skip to main content
100%

5:17 refactoring

✓ Published1🌍 Public
Uumgi
Last edited Feb 28, 2021
Created on Feb 28, 2021
Forked from 5:03 axies

This example shows a horizontal bar chart of population data for the top 10 countries, sourced from the United Nations’ 2019 population estimates. The visualization uses React to render SVG elements, with D3 utilities such as `scaleBand`, `scaleLinear`, and `csv` for data loading and scaling. The y-axis labels are positioned using the band scale’s bandwidth, while the bars are drawn as rectangular marks whose widths derive from the linear population scale.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes