Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task1_question2

Public visualization

Viewing a saved revision (read-only)

29940f6ecdb04f71b70890e0b3394c17

Activity6_task1_question2

0 stars0🌍 Public
Ssivachandraramanaidu.vnof52@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This horizontal bar chart displays the top 20 countries by population in 2010, sorted in descending order with population values mapped to bar length. The visualization uses D3 v5’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with `d3.axisLeft` and `d3.axisBottom` rendering the axes. Data is loaded asynchronously via `d3.csv` from a remote gist, and the bars are drawn as SVG `rect` elements. Population values are formatted using `d3.format('.2s')` for compact tick labels.

AI-generated description