Skip to main content
100%

Activity6_population_Qn1

✓ Published0🌍 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
MIT Licensed

Similar vizzes