Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pathetic Bar Chart

Public visualization

Viewing a saved revision (read-only)

fdc0a962067f44d88fcb5314ab4f53f0

Fork of Pathetic Bar Chart

0 stars1🌍 Public
Ssuhail.parkar02@gmail.com
Last edited Jul 31, 2025
Created on Jul 31, 2025
Forked from Pathetic Bar Chart

This example visualizes the top 10 countries by 2020 population using a horizontal bar chart rendered as SVG. The chart uses a `scaleBand` for country categories on the y-axis and a `scaleLinear` for population magnitudes on the x-axis, with a `rect` per data row. It loads UN population data via `d3.csv` and builds the visualization with React hooks (`useState`, `useEffect`) and D3 v5 scales.

AI-generated description