Skip to main content
100%

Stylized Bar Chart

✓ Published1🌍 Public
Jjbruzzo
Last edited Jul 1, 2022
Created on Jun 30, 2022
Forked from Refactor Bar Chart

A stylized bar chart displays the top ten countries by population for 2020. D3’s `scaleBand` and `scaleLinear` map country names to horizontal bars and population values to widths, with rounded corners and custom axis ticks formatted using D3’s `format` API. React state, managed in a custom `useData` hook, loads the UN Population 2019 CSV via `d3.csv` and renders the SVG.

AI-generated description

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

MIT Licensed

Similar vizzes