🌍 Public
Viewing a saved revision (read-only)
ffeb0a149d224a96b7ce30b26f6d6b80
Data & D3
A bar chart displays the top 10 countries by 2020 population, sourced from a UN dataset loaded via d3.csv. React manages the component state, rendering an SVG that uses d3.scaleBand for country categories and d3.scaleLinear for population values, with gridlines generated from xScale.ticks(). The visualization updates asynchronously after data fetching, showing a loading message until the CSV is parsed.
AI-generated descriptionA program that follows your mouse with a circle