Fork of Fork of Stylized Bar Chart
✓ Published0🌍 Public
This interactive bar chart visualizes the top 10 most populous countries for 2020, using data from the United Nations World Population Prospects 2019. The visualization is implemented in React and uses d3’s `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles. A custom `useData` hook fetches the CSV data, and d3’s `format` function converts large numbers into abbreviated tick labels. The chart includes axes with styled ticks and a hover tooltip revealing the exact population via SVG `<title>` elements.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed