Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries as colored rectangles with no axes, using React hooks (useState, useEffect) to load and transform CSV data. The d3.csv method fetches United Nations World Population Prospects 2019 data, while d3.scaleBand and d3.scaleLinear position and size the rectangles based on country names and 2020 population estimates. The chart renders as an SVG with React components, mapping each data row to a <rect> element.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed