Pathetic Bar Chart
✓ Published1🌍 Public
JJakub
Last edited Dec 10, 2021
Created on Dec 10, 2021
Forked from Fork of Fork of Loading Data with React & D3
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 descriptionMIT Licensed