Skip to main content
100%

Activity - 6_Task - 1

✓ Published0🌍 Public
Mmalisettisaisumanth@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025

This horizontal bar chart displays the 30 most populous countries in 2020, using a diverging layout where bars extend rightward from a shared origin. The visualization sorts nations by population in descending order, with China and India leading at over 1.3 billion residents each. The chart uses D3 v7's `scaleLinear` for the population axis and `scaleBand` for categorical country labels, with bars rendered as SVG rectangles. Population values are loaded from a remote CSV file using `d3.csv` and formatted with the `d3.format` si-prefix, converting G to B for billions. Axes are styled by removing domains and adjusting tick marks, with light gray gridlines extending across the plot area.

AI-generated description
MIT Licensed

Similar vizzes