Skip to main content
100%

Fork of Pathetic Bar Chart

✓ Published0🌍 Public
AAnthony Le
Last edited Aug 17, 2024
Created on Aug 17, 2024
Forked from Pathetic Bar Chart

This example renders the top 10 most populous countries as a bar chart with no axes or labels. Using React hooks (useState, useEffect, useCallback) the component loads United Nations World Population Prospects 2019 data via d3.csv, slices the first ten rows, and displays them as SVG rectangles. The chart uses d3.scaleBand for the y-axis positioning and d3.scaleLinear for the x-axis widths, with bars drawn directly in JSX. The visualization intentionally omits axes, ticks, and text to present the data in a minimal, "pathetic" style that emphasizes raw bar lengths without supporting context.

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