Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

refactored bar chart

Public visualization

Viewing a saved revision (read-only)

35d3eb685dc44e6b90c262d1ab19305f

refactored bar chart

0 stars1🌍 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.