🌍 Public
Viewing a saved revision (read-only)
2243e8b8ffcf4d248dec37bb036cc025
Pathetic Bar Chart
This example visualizes the top 10 most populous countries as a bare-bones bar chart with no axes or labels, using only rectangles scaled by population. It loads data from the United Nations World Population Prospects 2019 via d3.csv, then applies d3.scaleBand for the vertical country bands and d3.scaleLinear for horizontal bar widths. The chart is rendered as SVG within a React component using react and react-dom, with bars drawn for each country in the dataset.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.