Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Viewing a saved revision (read-only)

248b95a2582142ebb6e6a472e44fffd1

Bar chart

0 stars1🌍 Public
AAlex Stulov
Last edited Jul 12, 2021
Created on Jul 12, 2021

This bar chart displays the top 10 countries by 2020 population from a UN Population dataset loaded via `d3.csv`. It uses React with hooks (`useState`, `useEffect`) to fetch and store the data, then renders SVG rectangles scaled by `d3.scaleBand` for countries and `d3.scaleLinear` for population values. Gridlines and axis ticks are generated with `xScale.ticks()`, and the chart is drawn within a margin-based layout.

AI-generated description

Mouse follower