Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_population_Qn1

Public visualization

Viewing a saved revision (read-only)

eb66f4c9745c418cb64e3ad8bd2202a7

Activity6_population_Qn1

0 stars0🌍 Public
Pparmuriat@gmail.com
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This horizontal bar chart displays the top 10 countries by population in the year 2000, using a light blue fill for each bar. The visualization is built with D3 v7, fetching CSV data from a GitHub repository via `fetch` and `d3.csvParse`, then sorting and slicing the dataset. The code uses `scaleLinear` and `scaleBand` for the x and y axes, respectively, and renders SVG rectangles with drop lines and axis labels generated by `d3.axisBottom` and `d3.axisLeft`.

AI-generated description