Activity 6
✓ Published1🌍 Public
A horizontal bar chart displays the 2020 population estimates for the top 30 countries, with each bar's length encoding the population value in thousands. The React-based visualization uses D3 scale functions to map data to screen coordinates, rendering bars as SVG rectangles with tooltips showing the formatted population. Data is loaded asynchronously from a remote CSV file using d3.csv, which parses the population column into numeric values before slicing the dataset. The axes are built with custom React components that generate tick marks and labels using the scale's domain and bandwidth properties.
AI-generated descriptionMIT Licensed