Skip to main content
100%

refactored bar chart

✓ Published1🌍 Public
JJosh Zalcman
Last edited Mar 9, 2022
Created on Mar 8, 2022
Forked from UN data

This bar chart displays the populations of the top 10 countries for 2020, with country names on the y-axis and population values on the x-axis. Built with React and D3 v7, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering bars as SVG rectangles. The data is loaded via `d3.csv` from a GitHub gist, and formatted tick labels use `d3.format` to abbreviate large numbers. Tooltips show exact values when hovering over each bar.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes