Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
Ccoltonjcox92
Last edited Jan 30, 2022
Created on Jan 30, 2022

A bar chart from D3 v5 displays the top 10 most populous countries using React primitives, rendering country names and population values as SVG elements. Data comes from the United Nations World Population Prospects 2019. The chart refactors typical D3 components into separate React modules for axes and marks, using `scaleBand` and `scaleLinear` for positioning, with the `Marks` component drawing rectangles.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes