Skip to main content
100%

bar chart with React & D3r

✓ Published1🌍 Public
KKolezhannochka
Last edited Jan 5, 2022
Created on Jan 4, 2022

A bar chart displays the top 10 countries by 2020 population, with horizontal bars sized by population values from a UN Population 2019 CSV. The React app uses `useState` and `useEffect` to asynchronously fetch the data via D3’s `csv` loader, then renders SVG rectangles scaled by `scaleBand` for countries on the y-axis and `scaleLinear` for population on the x-axis. D3 v7 and React 16.9 are loaded from CDNs.

AI-generated description

Smiley face implementation with React.

MIT Licensed

Similar vizzes