Skip to main content
100%

D3JS: Fork of Pathetic Bar Chart

✓ Published0🌍 Public
JJefferson Ventura
Last edited Dec 6, 2021
Created on Dec 6, 2021
Forked from Pathetic Bar Chart

This example presents the top 10 most populous countries as a bar chart, deliberately omitting axes to emphasize quantity over measurement. The SVG visualization is built using React components that dynamically render rectangles scaled by population from 2019 United Nations data, loaded via `d3.csv`. Using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis, bars stretch horizontally from the left. The chart updates once the CSV data is parsed and sorted, with countries listed vertically and their 2020 population values determining bar width.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes