Skip to main content
100%

Activity 6_Q2

✓ Published0🌍 Public
SSrihith Reddy Gaddam
Last edited Apr 27, 2025
Created on Apr 27, 2025
Forked from Activity 6_Q1

A horizontal bar chart displays the 2010 populations of the top 20 countries, sorted from largest to smallest. The visualization uses a D3 scaleBand for the categorical y-axis and a scaleLinear for the numerical x-axis, with population values formatted using the D3 `format` function to abbreviate large numbers. React functional components render the SVG axes and marks, with a native SVG `<title>` element providing hover tooltips. Data is loaded asynchronously from a CSV file via the `d3.csv` method, filtering and sorting the dataset before rendering the bars.

AI-generated description
MIT Licensed

Similar vizzes