🌍 Public
Viewing a saved revision (read-only)
998349bd20324fd7b6b7905fb0defb31
Activity-6_Question1.2
This horizontal bar chart visualizes the 2010 populations of the first 20 countries from a CSV file, sorted alphabetically by country name. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` for the axes and renders SVG rectangles via the `Marks` component. Each bar’s length represents population, with tooltips showing formatted values (e.g., "1.37B"). The chart includes styled tick marks and axis labels, with population data multiplied by 1000 from the source.
AI-generated descriptionCreating bar graph using the vizHub to visualize the population for the first 10 countries in the year 2020.