Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pathetic Bar Chart

Public visualization

Pathetic Bar Chart

0 stars1🌍 Public
JJakub
Last edited Dec 10, 2021
Created on Dec 10, 2021

This visualization displays a bar chart of the top ten countries by population for 2020, drawn from a UN population dataset. The chart uses horizontal bars, with each rectangle’s length proportional to the country’s population. Built with React and D3 v7, it fetches the CSV data via `d3.csv`, then uses `d3.scaleBand` for the y-axis (country labels) and `d3.scaleLinear` for the x-axis (population values) to generate the SVG rectangles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed