Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_Question1.2

Public visualization

Viewing a saved revision (read-only)

b758b8304c124811832f9b62ef43f613

Activity-6_Question1.2

0 stars0🌍 Public
Aabdul.khader2899@gmail.com
Last edited Apr 6, 2024
Created on Apr 4, 2024

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 description

Creating bar graph using the vizHub to visualize the population for the first 20 countries in the year 2010.