Skip to main content
100%

Activity6_Task1

✓ Published2🌍 Public
MMeghana Sadhu
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Hello VizHub

This horizontal bar chart displays the population of the top 30 countries in 2020, using a linear scale for population values and a band scale for country names. Each bar is rendered as an SVG rectangle with a lightgreen fill, while the axes include formatted tick labels that abbreviate millions as "M" and billions as "B". The visualization loads data from a remote CSV file using `d3.csv`, and constructs the chart with `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` within a 900x500 SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes