Activity6_population_Qn1
✓ Published0🌍 Public
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 descriptionMIT Licensed