🌍 Public
Viewing a saved revision (read-only)
bc40b318add74f61b799d0e73bffad5d
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 20 countries in the year 2010.