Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example renders the top 10 most populous countries as a series of horizontal bars with no axes or labels, using React to manage state and SVG for drawing. The chart loads population data from the United Nations World Population Prospects 2019 via `d3.csv`, then scales bar widths linearly using `d3.scaleLinear` and positions rows with `d3.scaleBand`. A hardcoded divisor in the width calculation replaces a proper scale range, making the visualization intentionally crude. The chart updates asynchronously after data fetching, displaying a loading message until the dataset arrives.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed